From: 7stud -- Date: 2009-02-15T05:30:20+09:00 Subject: Re: Code syntax comma usage Tom Link wrote: >>When you enter "var1, var2, var3 = 5" in irb, you'll get [5] as return >>value. It seems the 5 gets silently converted into an array here. >>Interesting. > > > The 5 doesn't get converted of course and [5] is the value of the > assignment. At times, I find ruby's permissiveness slightly > surprising. The value of the assignment is written as 5, so if you end up with [5] then it seems logical that something got converted. -- Posted via http://www.ruby-forum.com/.