From: David Flanagan Date: 2007-04-26T03:07:09+09:00 Subject: Re: Ruby 1.9: multiple splats on rvalues in parallel assignment I've confirmed this bug against the current trunk: ruby1.9 -ve 'x,y,z=1,*[2],*[3]; p x,y,z' ruby 1.9.0 (2007-04-25 patchlevel 0) [i686-linux] [1] 3 nil My question (for Matz or Nobu?) is about the nature of the bug. In 1.8, this code would be a syntax error, because multiple splats are not allowed on the right-hand side of a parallel assignment. Has this changed in Ruby 1.9? Is it supposed to be legal to have multiple splats? Is the parser allowing something that it shouldn't? Or is the VM mis-interpreting valid new syntax? David David Flanagan wrote: > This has got to be a bug... > > ruby1.9 -ve 'x,y,z=1,*[2],*[3]; p x,y,z' > ruby 1.9.0 (2007-02-06 patchlevel 0) [i686-linux] > [1] > 3 > nil > > Is Ruby 1.9 going to allow multiple splats on the right-hand side of a > parallel assignment expression? If so, I assume that the above is not > how they are actually going to work, right? > > David >