![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Still another way to define displayFatCalories
is to use
Smalltalk's cascading feature. To use cascading, you write out an
expression, followed by a semicolon, followed by an expression with an
implied receiver:
Receiver carried forward *-----------------------* | v --------- receiver first message; second message ^ *-- Signals cascading