Concept

What is the semicolon for in Smalltalk?

The semi-colon allows the user to cascade messages. The message following the semi-colon is sent to the same receiver object as the previous message.

In the example:

Transcript show: 'Hello!'; cr.
Both show: and cr are messages to Transcript.

References to this concept: