From: Einar Karttunen Date: 2002-05-03T20:46:02+09:00 Subject: Re: IDs of the reference On 03.05 20:36, Peter Hickman wrote: > I was hoping that from inside a class, in a method, I could work out > which reference was trying to call the method. The variable name is not > necessarily unique but somewhere within Ruby the a and b references must > be held even if they point to the same object. > A reference is basically a pointer to the object. The object doesn't know the references pointing to it. Also inside the object there is no way of knowing from which reference it was called. - Einar Karttunen