Skip to content

namespace local

Sub-commandNamespace
namespace local {name}

Also searchable as: namespace local

namespace local makes the local namespace name current. From then on, !x means variable x of that namespace. Only this script can see a local namespace; switching away and back finds its variables as they were.

name: A name made of letters, digits and _, not starting with a digit. Case does not matter.

A script starts in the local namespace std, and starts there again each time it is run.

namespace local ns1
set !test one
namespace local ns2
set !test two
namespace local ns1
display ok !test ; one
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.