From: "Wolfgang Nádasi-Donner" Date: 2005-07-30T03:31:01+09:00 Subject: Re: What does this assignment operator |= "Stefan Achatz" schrieb im Newsbeitrag news:42ea718c_1@news.arcor-ip.de... > Hello, > i think i once saw an assignment operator |= used in a ruby program. > I can't find anything in the pickaxe-book and on google. > What does it do? > Thanks, Stefan 'a |= b' is the same as 'a = a | b', where '|' is the or-method. There is one remarkable difference to '||' (and '||='), because '||' may be lazy if the left operand evaluates to 'true', while using the '|'-method the right operand is an argument for the method, so it will always be evaluated. Best regards, Wolfgang -- Wolfgang N�dasi-Donner wonado@donnerweb.de