Home Segments Index Top Previous Next

297: Mainline

Smalltalk's iteration messages enable methods to do computations over and over until a test has been satisfied. Smalltalk's whileTrue: message, for example, consists of a receiver, the whileTrue: selector, and an argument. The receiver and argument are both blocks:

receiver block whileTrue: argument block