From: "David A. Black" Date: 2007-10-02T19:17:46+09:00 Subject: Re: a = b = c order of evaluation weird Hi -- On Tue, 2 Oct 2007, 7stud -- wrote: > SpringFlowers AutumnMoon wrote: >> >> why is that? >> > > a = Array(1..6) > p a > > puts "size: #{a.size/3}" > a[p(0..a.size/3)] = a[p(a.size*2/3..-1)] = nil Have you tried to run that? :-) 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!