From: Aaron Smith Date: 2007-03-10T13:55:19+09:00 Subject: Re: ruby / php operator differences. > 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 pretty flippin cool. in this example: int = int.send(:|,0x1000000) is it neccessary to have assignment portion? as in: int.send(:|,0x1000000), does this take out the need for (int=) -- Posted via http://www.ruby-forum.com/.