2008/3/2, ts <decoux / moulon.inra.fr>: > >>>>> "Y" == Yusuke ENDOH <mame / tsg.ne.jp> writes: > > Y> I want to say it's bug. Please don't blame Proc#curry ;) > > It's really difficult to make this ? > > vgs% ./ruby -e 'a = :+.to_proc.curry; b = a[12]; p b[12]' > 24 > vgs% Are you saying about [ruby-core:15716] ? Hmm, I think it's a kind of nonessential hack, so I don't want to insert it into Proc#curry preferably. If it is a feature that :+.to_proc.arity is -1, we should specify the number of arguments of such a proc as well as another normal proc that receives optional arugments, I think. -- Yusuke ENDOH <mame / tsg.ne.jp>