Category: Language-Data types
Superclass: Association
My instances represent know about their parent namespace, which is of use when implementing weak collections and finalizations.

Method category index

basic (class)
accessing (instance)
finalization (instance)
storing (instance)

basic (class)

key: aKey value: aValue environment: aNamespace
Answer a new association with the given key and value

top


accessing (instance)

environment
Answer the namespace in which I live.

environment: aNamespace

Set the namespace in which I live to be aNamespace.

top


finalization (instance)

mourn
This message is sent to the receiver when the object is made ephemeron (which is common when HomedAssociations are used by a WeakKeyDictionary or a WeakSet). The mourning of the object's key is first of all demanded to the environment (which will likely remove the object from itself), and then performed as usual by clearing the key and value fields.

top


storing (instance)

storeOn: aStream
Put on aStream some Smalltalk code compiling to the receiver

top