On Feb 5, 2006, at 10:08 AM, jonT wrote:

> class Method; attr_accessor :foo; end
> def bar; "some_res"; end
> method(:bar).foo=1
>
> method(:bar).foo #= 1
>
> Of coures what i'd actually get is:
> method(:bar).foo #= nil
>
> because method(:bar) returns a new object each time.

Of course!  It may not be the same method.  Another thread may  
overwrite bar with a new implementation.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com