From: Leo Date: 2001-05-14T23:10:04+09:00 Subject: [ruby-talk:15096] [Q] Rroc#arity ambiguity. Is it a bug? Hi experts, Here is what I consider an ambiguity: # Ruby-1.6.2, Ruby-1.6.3 Proc.new{ |x| }.arity #-> -1 Proc.new{|*x| }.arity #-> -1 From the principle of least surprise I would expect that Proc.new{ |x| }.arity returns +1 because it has one required argument and no optional arguments. Am I missing something?? Thanks, -- Leo --