Home Segments Index Top Previous Next

204: Mainline

The hash mark, or pound sign, #, in #Vegetable tells Smalltalk that Vegetable is not a variable to be evaluated, but rather is a string to be used as is. Thus, a hash mark introduces a literal symbol. In every class definition, you use a literal symbol to name the class that you wish to define.