On May 6, 2006, at 11:03 PM, polypus wrote:

>
> p = proc {}
> p.arity -> -1
>
> shouldn't that be returning 0?
>
> btw p = proc { |*a| } gives me -1 like it should.
>
> ruby 1.8.4 (2005-12-24) [i686-linux]
>
> --  
> Posted via http://www.ruby-forum.com/.
>

It's not a bug it's a feature:

proc { || } has arity 0, proc {} takes any number of args and ignores  
them.