|
|
6.171 ValueHolder
- Defined in namespace Smalltalk
- Category: Language-Data types
- I store my value in a variable, and know whether I have been
initialized or not. If you ask for my value and I have not been
initialized, I suspend the process until a value has been assigned.
6.171.1 ValueHolder class: creating instances
- new
- Create a ValueHolder whose starting value is nil
- null
- Answer the sole instance of NullValueHolder
- with: anObject
- Create a ValueHolder whose starting value is anObject
6.171.2 ValueHolder: accessing
- value
- Get the value of the receiver.
- value: anObject
- Set the value of the receiver.
6.171.3 ValueHolder: initializing
- initialize
- Private - set the initial value of the receiver
|