[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
FreeM supports creating persistent mappings through which arbitrary global names may be mapped to specific namespaces. This allows non-%
globals to be stored in the SYSTEM
namespace, or %
globals to be stored in non-SYSTEM
namespaces.
To map the ^FOO
global to the SYSTEM
namespace, any of the following will work:
MAP GLOBAL ^FOO="SYSTEM" SET ^$GLOBAL("FOO","NAMESPACE")="SYSTEM" SET ^$SYSTEM("MAPPINGS","GLOBAL","^FOO")="SYSTEM"
There is no functional difference in any of the three approaches; the method you choose is a matter of personal preference.
To remove the above mapping, any of the following examples will also work:
UNMAP GLOBAL ^FOO KILL ^$GLOBAL("FOO","NAMESPACE") KILL ^$SYSTEM("MAPPINGS","GLOBAL","^FOO")
This document was generated on September 20, 2023 using texi2html 5.0.