From: "David A. Black" Date: 2009-02-15T04:25:04+09:00 Subject: Re: Code syntax comma usage Hi -- On Sun, 15 Feb 2009, Tom Link wrote: >> It seems the 5 gets silently converted into an array here. > > 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. That's been fixed in 1.9, so that a,b,c = 5 returns 5. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!