From: Nathaniel Talbott Date: 2004-09-29T23:23:43+09:00 Subject: Re: ruby-dev summary 24298-24353 On Sep 29, 2004, at 09:38, SASADA Koichi wrote: > [ruby-dev:24302] Invoke Proc object with any method name > > Nowake proposed that a Proc object should be invoked with > any method name like that: > > m = Proc.new( :to_s ) { 'test1' } > p m.to_s # => 'test1' > He made a point that it is helphul that a Proc object can > be handled as polymorphic. > > Matz amazed about this idea. Me too... I haven't found a place to use it since I read about it two minutes ago, but it sends a tingle down my spine just thinking about it. It is definitely polymorphic Ruby goodness. Maybe we can convince Nowake to submit an RCR? > See you at RubyConf2004. Looking forward to it... Nathaniel Terralien, Inc. <:((><