![]() |
![]() |
![]() |
![]() |
![]() |
|
Finally,
tickTo: must send the updateMonth message to check the
month variable just before each step message is sent; and
also, tickTo: must report the value of the history variable, using
printOrderedCollectionValues, when all work is done:
RabbitApplication method definition instance tickTo: limit [month <= limit] whileTrue: [self updateMonth. self step]. history printOrderedCollectionValues OrderedCollection method definition instance printOrderedCollectionValues self do: [:element | Transcript show: element printString; space]. Transcript cr