From: Paul Brannan Date: 2004-09-29T23:38:28+09:00 Subject: Re: ruby-dev summary 24298-24353 On Wed, Sep 29, 2004 at 10:38:55PM +0900, SASADA Koichi wrote: > 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' I know what the sample implementation does, but how would/should the final version respond to: p m.call() Also, it took me a while to figure out what was meant by the above code. What advantage does it give over: m = Object.new m.define_singleton_method(:to_s) { 'test1' } (I know no such method exists, but I think it probably should...) Paul