From: Brian Mitchell Date: 2008-05-06T02:21:52+09:00 Subject: Re: lambda, ->, haskell, and so on On Mon, May 5, 2008 at 1:16 PM, David A. Black wrote: > Hi -- > > > > On Tue, 6 May 2008, Paul Brannan wrote: > > > > On Tue, May 06, 2008 at 02:02:34AM +0900, David A. Black wrote: > > > > > define_method(:m) &lambda(x,y,z) { block } > > > > > > > That looks like the binary & operator, not the unary block-pass > > operator (or whatever it's called). > > > > I thought that before a Proc object it was automatically the > block-pass, or to_proc, or whatever, operator. In an argument list it takes a Proc or to_proc-able object... so you need to adjust the code like so: define_method(:m, &lambda(x,y,z) { block }) Brian.