From: David Vallner Date: 2006-02-23T09:44:31+09:00 Subject: Re: Syntax questions Dňa Streda 22 Február 2006 12:27 Ross Bamford napísal: > On Wed, 2006-02-22 at 10:50 +0900, David Vallner wrote: > > david@chello082119107152:~$ irb > > irb(main):001:0> a, b = [1, 2] > > => [1, 2] > > irb(main):002:0> a > > => 1 > > irb(main):003:0> b > > => 2 > > > > Might possibly change in 1.9 / 2.0 to reduce the ambiguity and general > > mystery surrounding parallel assignment in strange cases. (Basically, > > once the number of lvalues and rvalues differs, things get mildly funky, > > and it's only downhill from there) > > Seriously? If that's true, I hope it never comes to pass. I don't think > it's mysterious, and it's saved me a good few lines of code here and > there... > Hmm, it's not on eigenclass, so I might have been hallucinating. IIRC, wherever I read about that, the change was related to when the last rvalue, or the only rvalue was an Array - the automagical expansion being removed or some such. Don't take this with any authority from me though. David Vallner