From: Mike Bowler Date: 2001-03-06T22:54:01+09:00 Subject: [ruby-talk:12129] Proc.arity() broken on Windows? When I run the following code on windows and on linux, I get different results. def testArity( &proc ) puts proc.arity() end testArity() {} testArity() { |a| } testArity() { |a,b| } testArity() { |a,b,c| } On linux, the result is: -1 -2 2 3 On windows, the result is: -1 -1 2 3 This means that on windows there seems to be no way to distinguish between no parameters and one parameter. Am I doing something wrong or have I discovered a bug in the windows version? Mike mbowler@GargoyleSoftware.com