[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

Re: arity bug?

From: ts <decoux@...>
Date: 2003-10-05 16:33:38 UTC
List: ruby-core #1580
>>>>> "C" == Christoph  <chr_news@gmx.net> writes:

C> p proc {|| 13 }.arity  # 0
C> p proc { 13 }.arity    # -1

svg% ruby -e 'a = proc { p 12 }; a[1,2,3]; b = proc {|| 13 }; b[1]'
12
-e:1: wrong number of arguments (1 for 0) (ArgumentError)
        from -e:1:in `[]'
        from -e:1
svg% 


Guy Decoux

In This Thread