Wiki

Changes between Version 5 and Version 6 of Namespace

Show
Ignore:
Timestamp:
07/29/13 10:46:05 (4 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Namespace

    v5 v6  
    11= Namespace = 
    22{{{ 
    3 namespace <namespaceId> 
     3namespace NAMESPACEID 
    44}}} 
    55 
    6 Declare a namespace to be followed by declarations belonging to it. Indenting the content of the namespace is optional. 
     6Declare a namespace to be followed by declarations belonging to it. 
    77 
     8A namespace is used to define (and describe) the scope of a set of related enclosed objects.  
     9This scope lets you organize code and gives you a way to create globally unique types. 
    810 
    9 <namespaceId> may be a single Toplevel Identifier ([A-Z][a-zA-Z0-9_]*) or a sequence of Identifiers separated by '.'.[[BR]] 
     11The namespace name (NAMESPACEID) may be a single toplevel Identifier ([A-Z][a-zA-Z0-9_]*) or a sequence of Identifiers separated by '.'.[[BR]] 
    1012 
    11 Each Identifier within the Namespace sequence must start with an uppercase letter. 
     13Indenting the content of the namespace is optional. 
     14 
     15Each identifier within the Namespace name sequence must start with an uppercase letter. 
     16 
     17If a namespace is '''not''' specified items provided are assumed to be placed as if they were specified in a (toplevel) default namespace.  
    1218 
    1319A Namespace may contain 
    14    * A [wiki:CodeDoc DocString] directly after the namespace declaration documenting the Namespace. (Currently not implemented) 
     20   * A [wiki:CodeDoc DocString] directly after the namespace declaration documenting the Namespace. 
    1521   * [wiki:Classes Class Definition] 
    1622   * [wiki:Interface Interface Definition] 
     
    2026   * [wiki:TypeExtensions Extension Definition ] 
    2127   * [wiki:MixIn Mixin Definition] 
     28   * [wiki:UseDirective Use directives] 
     29   * Another namespace declaration 
    2230 
    2331== Example == 
     
    2937namespace Foo.Bar.Baz 
    3038   ... 
     39 
     40namespace Say 
     41   namespace Can 
     42      ... 
     43   ... 
    3144}}} 
    3245