From: SASADA Koichi Date: 2008-10-22T00:43:26+09:00 Subject: [ruby-core:19414] Re: Is this expected, or should I report it? It seems a bug. Thank you for reporting. Dave Thomas wrote: > Given > > def regular(a, b, *c) > puts "a=#{a}, b=#{b}, c=#{c}" > end > regular(1, *[2, 3], *4) > regular(*[], 1, *[2, 3], *[], 4) > regular(*[], 1, *[], *[2, 3], *[], 4) > > dave[RUBY3/Book 10:35:29*] ruby -v t.rb > ruby 1.9.0 (2008-10-14 revision 15427) [i386-darwin9.5.0] > a=1, b=2, c=[3, 4] > a=1, b=2, c=[3, 4] > a=1, b=4, c=[] > > > I don't see why the last one isn't the same as the second one--in both > cases, *[] contributes no parameters to the call. > > > > Dave > -- // SASADA Koichi at atdot dot net