Changes between Version 2 and Version 3 of NameSpaces


Ignore:
Timestamp:
2017-09-11 13:25:50 (8 years ago)
Author:
archibald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NameSpaces

    v2 v3  
    1111{{{ 
    1212SINGLETON design 
    13     namespace{} ourNameSpaces 
     13    namespace ourNameSpaces = NEW namespace("system") 
    1414 
    15 CLASS namespace 
    16     namespace{} subSpaces     
    17     ubyte$ name 
     15CLASS namespace(ubyte$ name) 
     16    namespace{} subSpaces 
     17     
     18    namespace(namespace) addNamespace(newNameSpace) = 
     19    { 
     20        subSpaces.add(newNameSpace) 
     21        RETURN newNameSpace 
     22    } 
    1823}}}