From: Mauricio Fernandez Date: 2007-04-26T19:28:59+09:00 Subject: Re: [patch] Re: test/unit inconsistencies between 1.9 and 1.8 On Thu, Apr 26, 2007 at 06:56:45PM +0900, Adam Bozanich wrote: > On 4/26/07, Mauricio Fernandez wrote: > >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 Yes, I've traced it back to this: Wed Mar 21 20:05:07 2007 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h, proc.c, vm.c, vm_macro.def, vm_macro.def, yarvcore.c, yarvcore.h, debug.c, debug.h: merge half-baked-1.9 changes. The biggest change is to change node structure around NODE_SCOPE, NODE_ARGS. Every scope (method/class/block) has own NODE_SCOPE node and NODE_ARGS represents more details of arguments information. I'll write a document about detail of node structure. I've sent a bug report to ruby-core. -- Mauricio Fernandez - http://eigenclass.org - singular Ruby ** Latest postings ** On GC and finalizers in Ruby, corrected weak hash table implementations http://eigenclass.org/hiki/deferred-finalizers-in-Ruby simplefold: better vim folding (Ruby, Objective Caml, Perl, PHP, Java) http://eigenclass.org/hiki/simplefold