On May 12, 2006, at 11:59 AM, Ilmari Heikkinen wrote: > On 5/12/06, Victor Shepelev <vshepelev / imho.com.ua> wrote: >> Hi all. >> >> Somebody knows why YARV do this: >> >> l = lambda{|*arg| p arg} >> >> l[1] #prints 1 instead of [1] >> l[2,3] #prints 2 instead of [2,3] >> l[] #prints 0 instead of [] > > Works here.. Try the SVN HEAD? How did you compile it? $ ruby-yarv -ve 'lambda { |*a| p a }[2,3]' ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [powerpc-darwin8.6.0] YARVCore 0.4.0 Rev: 497 (2006-05-07) [opts: ] 2 -- Eric Hodel - drbrain / segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com