From: Martin DeMello Date: 2005-11-02T21:52:07+09:00 Subject: Re: Anonymous methods, blocks etc. (Cont. 'default block params') Trans wrote: > > To get hold of a first class method we have to do method(:meth). Many > of us have wanted something briefer (of course this ties into the whole > UnboundMethod/Method/Lambda/Proc/Block craziness, nontheless...) So why > not have the two on the same footing then? > > lam = lambda do ; 1 ; end > lam #=> 1 > > And to get a reference to the actual lambda object maybe > > &lam > > and we can do it for methods: > > &meth #or &self.meth as the case may warrent This breaks ruby's model quite badly, though. If a lambda is a function object, then any variable pointing to it should 'return' the object when used. martin