Category: Language-Implementation
Superclass: AbstractNamespace
I am a special form of dictionary. Classes hold on an instance of me; it is called their `environment'.

Method category index

instance creation (class)
namespace hierarchy (instance)
overrides for superspaces (instance)
printing (instance)

instance creation (class)

new: spaceName
Create a new root namespace with the given name, and add to Smalltalk a key that references it.

top


namespace hierarchy (instance)

siblings
Answer all the other root namespaces

siblingsDo: aBlock

Evaluate aBlock once for each of the other root namespaces, passing the namespace as a parameter.

top


overrides for superspaces (instance)

inheritedKeys
Answer a Set of all the keys in the receiver and its superspaces

set: key to: newValue ifAbsent: aBlock

Assign newValue to the variable named as specified by `key'. This method won't define a new variable; instead if the key is not found it will search in superspaces and evaluate aBlock if it is not found. Answer newValue.

top


printing (instance)

nameIn: aNamespace
Answer Smalltalk code compiling to the receiver when the current namespace is aNamespace

printOn: aStream in: aNamespace

Print on aStream some Smalltalk code compiling to the receiver when the current namespace is aNamespace

storeOn: aStream

Store Smalltalk code compiling to the receiver

top