From: Christoph Date: 2003-10-06T01:55:00+09:00 Subject: Re: arity bug? "ts" wrote: ... > svg% ruby -e 'a = proc { p 12 }; a[1,2,3]; b = proc {|| 13 }; b[1]' > 12 > -e:1: wrong number of arguments (1 for 0) (ArgumentError) > from -e:1:in `[]' > from -e:1 > svg% I known that the calling convention is consistent with the arity but since there is no way of accessing the calling arguments inside a Proc call like proc { p 12 }[12,13] it feels that the arity of these Proc's is 0 and not the current -1. /Christoph