Back: ValueAdaptor-printing Up: Base classes Forward: ValueHolder class-creating instances   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.200 ValueHolder

Defined in namespace Smalltalk
Superclass: ValueAdaptor
Category: Language-Data types
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.

1.200.1 ValueHolder class: creating instances  (class)
1.200.2 ValueHolder: accessing  (instance)
1.200.3 ValueHolder: initializing  (instance)


1.200.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


1.200.2 ValueHolder: accessing

value
Get the value of the receiver.

value: anObject
Set the value of the receiver.


1.200.3 ValueHolder: initializing

initialize
Private - set the initial value of the receiver



Back: ValueHolder-accessing Up: ValueHolder Forward: VariableBinding   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on April, 16 2013 using texi2html