Reputation: 83
hi im unsure what # stand for in samlltalk and can't find a definition.
exercise code sample:
('hello','world')== #helloworld
I need to find out if this is true or false. I think its false because "==" stands for the same object which it isn't. But i don't know what the # stand for.
Upvotes: 1
Views: 113
Reputation: 2471
This is the syntax for a symbol.
#foobar
Symbols are similar to strings, except that symbols with the same sequence of characters are also exactly the same object.
Some links where you can find this information:
Upvotes: 4