Localize()

From TinyMUX
Revision as of 23:12, 28 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions FUNCTION: {{Function|localize(<expression>)}} This function evaluates <expression> using its own private copy of the global r-registers. That is, the global r...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


FUNCTION: localize(<expression>)

This function evaluates <expression> using its own private copy of the global r-registers. That is, the global registers are saved before <expression> is evaluated and restored afterwards.

This allows the <expression> to alter the r-registers without affecting the softcode outside the localize() invocation.

In many ways, localize() is the same as ulocal() except that <expression> is given as an argument instead of stored on an attribute.

Related Topics

ulocal(), objeval(), s()