From: gwtmp01@... Date: 2007-01-23T07:19:00+09:00 Subject: Re: Minor Change Proposal for Classes 'Object' and 'Method' On Jan 22, 2007, at 3:20 PM, Phrogz wrote: > Only if the method relies on the 'self'. For example: > > class Foo > def self.square( x ) > x*x > end > end > > could be reasonably translated to a lambda of: > > square = lambda{ |x| x*x } But 'self' is still defined within that block even if it isn't 'used'. It is a pretty fundamental concept in Ruby that 'self' is always defined. I realize that in the functional world a lambda only uses its arguments for input, but in the Ruby world there is always an implicit receiver hanging around. Gary Wright