From: David Flanagan Date: 2007-04-24T14:19:05+09:00 Subject: Re: parallel assignment in Ruby 1.9 evaluates to true instead of array of rvalues nobu@ruby-lang.org wrote: > Hi, > > At Tue, 24 Apr 2007 08:27:41 +0900, > David Flanagan wrote in [ruby-core:11011]: >> Bug or feature? > >> ruby1.9 -v -e 'z = (x,y=1,2); p z' >> ruby 1.9.0 (2007-02-06 patchlevel 0) [i686-linux] >> true > > IIRC, Ko1 said he didn't want to implement it, due to the > performance cost. That seems like a reasonable tradeoff to me. I can't see the return value of a parallel assignment expression actually being used often. >> Also, can anyone point me to an explaination of why this doesn't work: >> >> ruby -v -e 'p(x,y=1,2)' > > You are just confused. It is equivalent to 'p(x, y=1, 2)'. > I was so deep into parallel assignment, I guess, that I couldn't see this. How embarassing! Thank you. David