116: Highlights
If
you want to define a method with neither arguments nor local variables,
then
instantiate the following pattern in the class-hierarchy browser:
method selector
comment
statement 1
statement 2
...
statement n
If
you want to refer to the receiver of a message in a method,
then
use
self
.
If
you want the value of an expression to be a method's value,
then
mark that expression with a answer marker,
^
.
Smalltalk is blank insensitive.
Smalltalk is case sensitive. By convention, method names consist of English words run together, with all but the first capitalized.
If
you want to insert a comment into a method,
then
mark both ends of the comment with double-quotation marks.
"
a comment
"
If
you want to send multiple messages to one receiver,
then
cascade the messages, separating them with semicolons.
If
you want to concatenate two
String
instances,
then
deploy a concatenation message, written as a comma.