How Can an Object Read its Own Name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How Can an Object Read its Own Name

highbeg
Hi Everyone,

I'd like for an object to be able to send a message with it's unique name
as an argument.

For example:
The Foo instance of the class Bar sends a message with an argument of Foo.

The Sna instance of the class Bar sends a message with an argument of Sna.

Foo := Bar new .
Sna := Bar new .

I tried to use self but to no avail.

Many thanks,

Gary
Reply | Threaded
Open this post in threaded view
|

Re: How Can an Object Read its Own Name

Brian Casiello
CONTENTS DELETED
The author has deleted this message.