From: matz@... (Yukihiro Matsumoto) Date: 2000-12-02T03:03:37+09:00 Subject: [ruby-talk:6712] Re: behavior of Proc#arity? Hi, In message "[ruby-talk:6682] behavior of Proc#arity?" on 00/12/01, Steven Grady writes: | || | |a| | |*a| |return -1, while there is nothing that returns 0 or 1? They accept any number of arguments without causing error, thus their arity must return -1. |a| is something like compromised |*a|, which I mean it's almost identical to |*a|, but since it appears to accept just one argument, it treats single argument specially. For exactly one argument, use |a,|. Notice trailing comma. matz.