When you work with Smalltalk, unlike with most programming languages,
you enter a development environment. The editor, compiler, and your
programs all reside in the development environment.
An object is an entity that receives and sends messages. In
Smalltalk, every entity is an object, so every entity is capable of
receiving appropriate messages.
Smalltalk programmers speak anthropomorphically about objectsas
though objects were people who can receives messages, find appropriate
procedures for handling messages, and respond with answers.
Smalltalk expressions may contain unary, binary, or keyword messages.
The unary messages are sent first, followed by the binary messages, and
then by the keyword messages. Thus, unary messages have the highest
precedence and keyword messages have the lowest.
Messages with the same precedence are sent in left-to-right order.
If you want to display the answer produced by an expression in a
workspace, then select that expression and click right > Show It.
If you want to display the answer produced by an expression in the
transcript, then construct a show: message:
Transcript show: expression printString
and then select the entire show: expression and click right > Do It:
If you want to start a new line in the transcript, then use the
cr message.
Transcript cr
If you want to evaluate several expressions in sequence, then separate
those expressions into statements by periods.