Spaces
Spaces allows to organize code classes in sets.
Space is a set that is indentified by name, which includes some classes.
Spaces are organized in tree, and can be accessed by extended name,
that consists of names of all parent spaces, separated by dots.
For example, an instruction:
is a declaration of a space named
Each class can belong to the one space, or not belong to any.
Accessing class that belongs to some space, require use of an extended name,
which, just like name of the space, should be prefixed by the extended name of the space.
For example:
and now, this class may be accessed by an extended name (even from the other spaces):
An Extended name of a class can be also used as a type of a class (see Classes).
Push and pop spaces
There are special instruction to save currently selected space and restore it later,
during code reading by the compiler.
These are:
Example of usage:
Above code declares 3 classes: