From: new2ruby@... (New 2 Ruby) Date: 2005-11-04T11:57:09+09:00 Subject: Re: Should "a,b = x,y = 1,2" give an error? On Fri, 4 Nov 2005 06:59:31 +0900, Ron M wrote: >This > > a,b = x,y = 1,2 > >give me a >"NameError: undefined local variable or method `x' for main:Object", >yet irb(main):001:0> a = b = x = y = 0 => 0 irb(main):002:0> a,b = x,y = 1,2 => [0, 1, 2] Doesn't work without seeing previous assignments to the variables involved. Maybe working as designed? Don't know. Jim Email address is _invalid_! Read here; please respond here.