From: 7stud -- Date: 2007-10-02T20:31:22+09:00 Subject: Re: a = b = c order of evaluation weird David A. Black wrote: > 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. > > Yes, I know, but that isn't the point of the example. The output provides the answer to the question. -- Posted via http://www.ruby-forum.com/.