From: Jeff Patterson Date: 2008-03-24T09:06:03+09:00 Subject: Re: Sytem hook for instance names? Robert Klemme wrote: > On 23.03.2008 19:30, Mark Bush wrote: >> it. And there can be multiple variables pointing to the object. So: >> >> a = SomeObject.new >> b = a >> >> Now "a" and "b" both point to the same object. How would you choose >> between returning :a and :b? > > Plus, what would you do in this case? > > a=[SomeClass.new] > > Basically it makes no sense... > > Cheers > > robert Thanks for the response. It seems to me that both of these issue could be covered by simply returning an array of the symbol names which point to a object or [] if an object has no name associated with it. -- Posted via http://www.ruby-forum.com/.