BEGIN

From iMath
Revision as of 09:22, 16 February 2020 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword |1= <code>BEGIN symbol</code> |2= Begin a new namespace. Labels and variable names will automatically be prefixed with the namespace. |3= Note that a leading dou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Syntax

BEGIN symbol

Implemented in iMath since version 2.2.10.

Explanation

Begin a new namespace. Labels and variable names will automatically be prefixed with the namespace.

Example

Note that a leading double colon (::) references the global (top-level) namespace.

 %%ii @a@ EQDEF a=8
 %%ii BEGIN ns_1
 %%ii @ns_1::a@ EQDEF a=3
 %%ii PRINTVAL {a}
 %%ii PRINTVAL {::a}
 %%ii END ns_1

This will print

 a=3
 ::a=8

See also

END