base
base

Reputation: 83

What does # stand for in Smalltalk

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

Answers (1)

Johan B
Johan B

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

Related Questions