On Sun, Mar 23, 2008 at 7:06 PM, Jeff Patterson
<jeff_patterson / agilent.com> wrote:
> 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.

I've thought about this, but objects are created and collected on the
fly.  In other words, the information wouldn't do you much good.  For
example, every time you do #each, a block is momentarily created.  You
always have an object that has zero or more actual variable "names".

Is it possible to grab all the references at one point in time?  Yes.
But, would it be useful or reliable?  I'm not so sure.  Maybe if you
froze everything :)

Todd