How Can an Object Read its Own Name
Gary Highberger <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Message-ID | <CAAWCt5yK3C6AZeQ9wQTTqYpFhJboVWF0Mvxzvav-RDz_Gofh7w@mail.gmail.com> |
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