[#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: matz@... (Yukihiro Matsumoto)
Date: 2003-10-05 23:57:54 UTC
List: ruby-core #1582
Hi,

In message "Re: arity bug?"
    on 03/10/06, "Christoph" <chr_news@gmx.net> writes:

|I known that the calling convention is consistent with the arity 
|but since there is no way of accessing the calling arguments
|inside  a Proc call like 
|
|proc {  p 12 }[12,13]
|
|it feels that the arity of these Proc's is 0 and not the current -1.

Why don't you specify parameters explicitly if you want to get the
argument.  Omitting parameters means "don't care".

							matz.

In This Thread