From: Simon Krahnke Date: 2008-05-02T21:35:06+09:00 Subject: Re: Please explain nuances of ||= * Robert Klemme (21:21) schrieb: > irb(main):009:0> h[1] = h[1] || 10 > => true Well, the difference is that h[1] gets only evaluated once. But now I get it: It does make a difference here if there is an assignment or not. So much for metaphysics. :-( So, neither x = x || y nor x || x = y explain everything about x ||= y. &&= and ||= are different from += and co, because of their short-cut behavior. They are conditional assignment operators. mfg, simon .... sfti