3 | | We need to create name spaces. |
4 | | Namespaces are commonly structured as hierarchies to allow reuse of names in different contexts. |
5 | | Namespaces are typically employed for the purpose of grouping symbols and identifiers around a particular functionality and to avoid name collisions between multiple identifiers that share the same name. |
| 3 | We need to create name spaces.[[BR]][[BR]] |
| 4 | Namespaces are |
| 5 | * commonly structured as hierarchies to allow reuse of names in different contexts. |
| 6 | * typically employed for the purpose of grouping symbols and identifiers around a particular functionality and to avoid name collisions between multiple identifiers that share the same name. |
| 7 | * hierarchical, ie sets of namespaces can be nested within another namespace |
| 8 | |
| 9 | To store namespaces we need a structure similar to that detailed below ... [wiki:NotationExplaination explaination of the notation] |
| 10 | |
| 11 | {{{ |
| 12 | SINGLETON design |
| 13 | namespace{} ourNameSpaces |
| 14 | |
| 15 | CLASS namespace |
| 16 | namespace{} subSpaces |
| 17 | ubyte$ name |
| 18 | }}} |