![]() |
![]() |
![]() |
![]() |
![]() |
|
The implementation of commonValue in
Segment 830 exhibits an important Smalltalk programming
idiom: if a getter sees that the value of an instance variable is
nil, then the getter creates a suitable value. Typically, such
value creation occurs only the first time that the getter is sent; subsequently,
the instance variable's value is not nil, so that value is answered.