Trans <transfire / gmail.com> 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