Back: RegexResults-testing Up: Base classes Forward: RootNamespace class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.138 RootNamespace

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

1.138.1 RootNamespace class: instance creation  (class)
1.138.2 RootNamespace: namespace hierarchy  (instance)
1.138.3 RootNamespace: overrides for superspaces  (instance)
1.138.4 RootNamespace: printing  (instance)


1.138.1 RootNamespace class: instance creation

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


1.138.2 RootNamespace: namespace hierarchy

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.


1.138.3 RootNamespace: overrides for superspaces

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.


1.138.4 RootNamespace: printing

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



Back: RootNamespace-overrides for superspaces Up: RootNamespace Forward: RunArray   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html