|
||||||||||||
|
|
||||||||||||
NamespacesNamespaces declare a collection of entities which group together somehow, for instnace, belong to same application or library. Namespaces may contain other namespaces, classes, interfaces, functions, variables and constants, just like modules. Namespace are incremental so that their contents are united together, as if they would have been declared in single namespace statement. If name of namespace contains more than one symbol then the possibly non-existing namespaces in between are implicitly declared.
Anvil's libraries are also namespaces, located in
When namespace are referred in code, they yield value of ``anvil.runtime.Scope´´. namespace := "namespace" namespace-name "{" ( import | constant | variable | function | namespace | class ) * "}" namespace-name := symbol ( "." symbol )*
|
||||||||||||
|
|
||||||||||||