Localize(): Difference between revisions
Jump to navigation
Jump to search
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...) |
(No difference)
|
Latest revision as of 23:12, 28 November 2010
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.