Hi --

On Tue, 6 May 2008, ts wrote:

> David A. Black wrote:
>>    lambda {|x,y,z| block }   # block/yield arg. semantics
>>    lambda(x,y,z) { block }   # method semantics
>
> and you do the same with define_method ? :-)

I'm not sure what you mean. Wouldn't you do this:

   define_method(:m) &lambda(x,y,z) { block }

I thought that was one of the purposes of ->(){} -- to let you use
method argument semantics in Proc objects. Am I wrong about that?


David

-- 
Rails training from David A. Black and Ruby Power and Light:
   INTRO TO RAILS         June 9-12            Berlin
   ADVANCING WITH RAILS   June 16-19           Berlin
   INTRO TO RAILS         June 24-27           London (Skills Matter)
See http://www.rubypal.com for details and updates!