Login  Register

How Can an Object Read its Own Name

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

How Can an Object Read its Own Name

highbeg
36 posts
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
| More
Print post
Permalink

Re: How Can an Object Read its Own Name

Brian Casiello
CONTENTS DELETED
The author has deleted this message.