[ruby-talk:00338] Re: Arity features for Proc object?

From: gotoken@... (GOTO Kentaro)
Date: 1999-05-24 05:56:39 UTC
List: ruby-talk #338
In message "[ruby-talk:00337] Re: Arity features for Proc object?"
    on 99/05/24, Yukihiro Matsumoto <matz@netlab.co.jp> writes:
>The negative number is
>
>  -(n+1) where n is least required number of arguments
>
>The former seems to accepts zero argument, but actually accepts
>arbitrary number of arguments (for compatibility reason), so arity
>returns a negative number.

I agree this very reasonable spec. 
thanks!

-- gotoken

In This Thread

Prev Next