From: ts Date: 2003-09-13T21:49:31+09:00 Subject: Re: order of evaluation for method arguments >>>>> "d" == daz writes: d> "Michael Garriss" wrote: >> a = [1,2,3,4,5] --> [1, 2, 3, 4, 5] >> b = [a.shift,a.shift,a.shift,a.shift,a.shift] --> [1, 2, 3, 4, 5] >> d> Well, since: d> a, b = b, a d> is 'defined' (in the sense that it's a ruby idiom), d> your example works the way I'd expect, even though d> Matz has guarded his options. I don't see the relation between the two. The first modify `a' in the RHS, the second not. Perhaps, it can exist a version of ruby which give b = [5, 4, 3, 2, 1] and where a, b = b, a still work Guy Decoux