Re: operator |=
Hi,
On Tue, 2007-11-06 at 21:21 +0900, Eustáquio 'TaQ' Rangel wrote:
> > Did I dream about an opeartor |=?
> It sets a value if the variable does not have one, like:
>
> >> foo ||= :bar
> => :bar
> >> foo ||= :xyz
> => :bar
Please take care not to confuse ||= with |=.
||= does as you say. |= is an assignment bitwise OR.
Arlen
|