From: Harry Kakueki Date: 2007-06-01T16:01:30+09:00 Subject: Re: Ruby bug in +=? On 6/1/07, zarawesome@gmail.com wrote: > On Jun 1, 3:00 am, james.d.mast...@gmail.com wrote: > > Rewrite this longhand as: > > > > $list = []; > > $list = $list + [function()]; > > > > Which really means: > > > > $list = [] + ["d"] > > Yeah, figured. It's just odd, and allows for some nice obfuscated > coding. > > > > Are you expecting ["a","b","c","d"] ? Something to look at.... $list = $list + [function()]; # ["d"] but $list = [function()] + $list; # ["d","a","b","c"] Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/