From: Eli Bendersky Date: 2006-04-20T02:14:00+09:00 Subject: Re: questions re Method#to_proc Yukihiro Matsumoto wrote: > |# works correctly > |foo([4, 5, 6]) > | > |foo_proc = method(:foo).to_proc > | > |# throws an ArgumentError: 3 for 1 > |foo_proc.call([4, 5, 6]) > | > |# works correctly > |foo_proc.call([[4, 5, 6]]) > > This issue will be solved in the future version (1.9), which should > give you the following result: > > Got an array with 3 elements > Got an array with 3 elements > Got an array with 1 elements > > > matz. Thanks, Matz. By the way, when is 1.9 due ? -- Posted via http://www.ruby-forum.com/.