From: "ara.t.howard" Date: 2007-10-28T23:27:19+09:00 Subject: Re: JRuby disabling ObjectSpace: what implications? On Oct 28, 2007, at 1:16 AM, Charles Oliver Nutter wrote: > > Are there other places _id2ref is used? i use it quite often as a way to have meta-programming 'storage' without polluting instances: foo = method :foo module_eval <<-code def foo(*a, &b) ObjectSpace._id2ref(#{ foo.id }).bind(self).call(*a, &b) end code which is fabricated - but you get the concept: string in eval maps to live object at run time. when #define_method takes a block this won't be used much i think though... cheers. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama