From: "David A. Black" Date: 2007-10-02T19:20:33+09:00 Subject: Re: a = b = c order of evaluation weird On Tue, 2 Oct 2007, 7stud -- wrote: > 7stud -- wrote: >> SpringFlowers AutumnMoon wrote: >>> >>> why is that? > > Or even simpler: > > a = Array(1..6) > > a[puts "hello"] = a[puts "world"] = nil puts returns nil, and you can't index an array with nil. David -- Upcoming training from Ruby Power and Light, LLC: * Intro to Ruby on Rails, Edison, NJ, October 23-26 * Advancing with Rails, Edison, NJ, November 6-9 Both taught by David A. Black. See http://www.rubypal.com for more info!