From: "T. Onoma" Date: 2004-08-23T04:25:17+09:00 Subject: Re: Callback for instance var creation? On Sunday 22 August 2004 02:55 pm, Florian Gross wrote: > Actually I think the best way to do this would be like this: > > obj = Object.new > obj.method(:foo) = self.method(:puts) > obj.foo(5) Not sure how that provides 1st class methods. The idea is to be able to store state in methods and give them singletons, etc. For instance: def ameth puts Time.now end # if ameth were a first class object def ameth.tag :log end Calling method(:ameth) doesn't work because it creates a new method object everytime and therefore looses state. Plus it is overly verbose. There have been other suggested notations like: ::meth \meth -- T.