Usage

Object syntax: temp.varname

Explanation

The temp prefix is a special variable prefix that allows you to mark a variable as "temporary" - that is, one that will be destroyed automatically at the end of the function that it was set in. For this reason, it is not possible to use temp variables as a form of non-volatile storage.

You might use temp variables in combination with while and for, or just for storing temporary information that is no longer required once the function ends (to save memory).

Example

function onCreated()
{
  temp.variable = "value";
}

In this example, temp.variable is no longer accessible after the onCreated function is finished.

Categories

CategoryVariablePrefix
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡