On Fri, Mar 09, 2007 at 07:36:55AM +0900, Aaron Smith wrote:
> would it make sense that in php:
> $int |= 0x10000000
> is just shorthand for
> $int = $int | 0x10000000

It's the same in Ruby, except it goes further:

int |= 0x10000000

is short for

int = int | 0x10000000

is short for

int = int.|(0x10000000)      # infix operator is really method call on LHS

is short for

int = int.send(:|, 0x10000000)   # explicit method call by symbolic name