Smalltalk
›
Gnu
Search
everywhere
only in this topic
Advanced Search
How Can an Object Read its Own Name
‹
Previous Topic
Next Topic
›
Classic
List
Threaded
♦
♦
Locked
2 messages
highbeg
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
How Can an Object Read its Own Name
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
Brian Casiello
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: How Can an Object Read its Own Name
CONTENTS DELETED
The author has deleted this message.
Free forum by Nabble
Edit this page