From: "Peña, Botp" Date: 2007-02-17T13:02:43+09:00 Subject: Re: ruby 1.9 splat in return statement, bug or feature? From: Gary Wright [mailto:gwtmp01@mac.com] # What's going on with splat in 1.9? # $ ruby -e 'def foo; return *[1]; end; p foo' # 1 # $ ruby-1.9 -e 'def foo; return *[1]; end; p foo' # [1] consistency perhaps? r@pc4all:~# ruby -e 'def foo; return *[1]; end; p foo' 1 r@pc4all:~# ruby -e 'def foo; return *[1,2]; end; p foo' [1, 2] kind regards -botp