From: Brian Candler Date: 2007-03-08T16:07:18+09:00 Subject: Re: ruby / php operator differences. On Thu, Mar 08, 2007 at 01:36:38PM +0900, Aaron Smith wrote: > When translating the Pseudo Code to PHP, it's verbatim except for > syntax. With ruby, I think i've found the problem with it not parsing > correclty. the |= operator. With PHP > > $i |= 0xe0000000; //= -536870912 > > Now with Ruby: > i |= 0xe000000 #= true Errm, how about providing some evidence for that claim? irb(main):010:0> 5 | 3 => 7 irb(main):011:0> i = 0 => 0 irb(main):012:0> i |= 0xe000000 => 234881024