Home Segments Index Top Previous Next

45: Mainline

Whenever a Smalltalk expression contains multiple methods of mixed types, a few simple rules determine how the expression is to be evaluated:

Thus, unary messages are said to have the highest precedence; keyword messages have the lowest precedence; and binary messages have precedence in between.

Thus, Transcript show: 1746 printString produces the following event sequence: