Category: Language-Data types
Superclass: ValueAdaptor
I store my value in a variable. For example, you can use me to pass numbers by reference. Just instance me before calling a method and ask for my value after that method. There are a lot of other creative uses for my intances, though.

Method category index

creating instances (class)
accessing (instance)
initializing (instance)

creating instances (class)

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

top


accessing (instance)

value
Get the value of the receiver.

value: anObject

Set the value of the receiver.

top


initializing (instance)

initialize
Private - set the initial value of the receiver

top