From: David Vallner Date: 2006-01-12T22:13:42+09:00 Subject: Re: Newbie question about multiple assignments On Thu, 12 Jan 2006 14:06:56 +0100, Karl Allmark wrote: > > Hi List > > Just getting up to speed with ruby myself, try reading Davids > explaination > as: > > a, b = [b,(a = a), b] > > Karl Allmark > > > Not quite, what I had in mind would be this one-liner: a, b = [b, *[a = [a, b]]] I have a slight completely unfounded doubt the interpreter would implicitly associate (a = a) in the middle of the expression. The results observed in irb ARE however ambiguous with respect to both of those possible interpretations. David Vallner