From: Phrogz Date: 2006-09-06T00:05:42+09:00 Subject: Re: Does an instance know his own name? Geoff Barnes wrote: > huey = Nephew.new > duey = Nephew.new > luey = Nephew.new > > duey.raise_error_on_purpose_just_for_fun #-> "Nephew 'duey' raised an > error" And what would happen if you did: huey = Nephew.new duey = huey luey = duey some_array = [ huey ] huey = nil duey.raise_error #=> "Nephew...uhm...duey, luey, some_array[ 0 ]?...raised an error." A variable doesn't hold an object, it holds a reference to it. Many variables (local, global, instance, and class) can all refer to the same object. If you have a symbolic name that is unique to an instance, pass that name in when creating the instance.