From: "David A. Black" Date: 2010-05-04T19:22:48+09:00 Subject: Re: * splat error Hi -- On Tue, 4 May 2010, Robert Dober wrote: > On Tue, May 4, 2010 at 11:55 AM, Justin Collins wrote: > > It is legal in 1.9 and illegal in 1.8 Ditto in arrays as well as parameter lists. (Kind of interesting that 1.8.7 also gives the useless literal error.) $ ruby -ve '[1,2,*[3,4],5]' ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin9.8.0] -e:1: syntax error, unexpected ',', expecting ']' [1,2,*[3,4],5] ^ -e:1: warning: useless use of a literal in void context $ ruby191 -ve 'p [1,2,*[3,4],5]' ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin9.8.0] [1, 2, 3, 4, 5] David -- David A. Black, Senior Developer, Cyrus Innovation Inc. THE Ruby training with Black/Brown/McAnally COMPLEAT Coming to Chicago area, June 18-19, 2010! RUBYIST http://www.compleatrubyist.com