From: Adam Bozanich Date: 2007-04-26T18:56:45+09:00 Subject: Re: [patch] Re: test/unit inconsistencies between 1.9 and 1.8 ------=_Part_113897_6881493.1177581402984 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/26/07, Mauricio Fernandez wrote: > > > ? > AFAIK #arity was redefined in 1.9 to return 0 for Procs with no arguments. > That patch was applied to 1.8 three years ago but it's not supposed to be > needed on 1.9, see [ruby-core:2829]. > > Also, > > RUBY_VERSION # => "1.9.0" > RUBY_RELEASE_DATE # => "2007-02-07" > proc{}.arity # => 0 > proc{||}.arity # => 0 > Proc.new{}.arity # => 0 Strange, must be a regression. irb(main):001:0> RUBY_VERSION => "1.9.0" irb(main):002:0> RUBY_RELEASE_DATE => "2007-04-26" irb(main):003:0> proc{}.arity => -1 irb(main):004:0> proc{||}.arity => -1 irb(main):005:0> Proc.new{}.arity => -1 ------=_Part_113897_6881493.1177581402984--