Smalltalk
›
Gnu
Login
Register
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
Options
Loading...
Subscribe via email
Move topic
Pin topic
Unpin topic
Lock topic
Unlock topic
Delete this topic
Delete this topic
Change title and meta tags
Embed post
Permalink
highbeg
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Jan 19, 2021; 2:08am
How Can an Object Read its Own Name
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
Brian Casiello
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Jan 19, 2021; 3:07am
Re: How Can an Object Read its Own Name
CONTENTS DELETED
The author has deleted this message.
Free forum by Nabble
Edit this page