From: Rick DeNatale Date: 2008-05-14T06:58:20+09:00 Subject: Re: lambda, ->, haskell, and so on On Tue, May 13, 2008 at 9:35 AM, Paul Brannan wrote: > On Tue, May 13, 2008 at 12:25:10PM +0900, ara.t.howard wrote: > > anonymous = (){ 42 } > > foo (){ 42 } # is this passing a block to foo or is it passing an > # anonymous function as the first argument to foo? Well in this case, since it's the ONLY argument and therefore the last as well as the first, I think there's precious little difference other than whether or not a proc/lambda is created, or none if foo is defined as: def foo(&b) end rather than def foo end -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/