| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Beginning Squeak programming notes

Page history last edited by PBworks 18 years, 2 months ago

> What's the hash mark signify when used as a prefix to a method

> name,

 

The hash mark signifies that it is a symbol.

 

Another word for "method name" is "selector". You sometimes see this

in comments in the code. For example, see the method

#addSelector:withMethod: in Behavior. A "selector" is always a

symbol. This means that the name of a method is always a symbol.

 

If I were writing a paper on Smalltalk and wanted to mention a method

name, I'd probably make it bold face, but when I am using plain ASCII,

like in e-mail or a Smalltalk comment, I'll put a hash mark before the

method name to indicate that it is a symbol.


Comments (0)

You don't have permission to comment on this page.