Programmer's Reference
An Association represents a binary relation between two objects,
called the key and the value.
- Note:
- Technically, the semantics of the magnitude comparing operations are
different for Associations, because the messages <,
<=, >, and >= are defined in terms of the
key only, while the = message is defined in terms of both the key
and the value. This means, for example, that <= is not
the "logical or" of < and =. Despite
this, Association has been grouped with the magnitude classes
because that is where it is traditionally implemented in the Smalltalk
environment.
key, key:, key:value:,
value, value:
- Porting tip:
- Both IBM Smalltalk and Objectworks\Smalltalk define the
= message in terms of both the key and the value.
Smalltalk/V defines = in terms of the key only. Smalltalk/V
does not provide the message key:value:.
key:value:
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]