Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Execution and exceptions

Execution

When program is executed its execution is always in some function or method (let's call it callable). When callable is entered, a stack frame is created into stack. Similarily, when callable is departed, either by normal means using return or yield statements, or forcefully with throw or exit statements, the stack frame is removed from the stack.

Stack frame contains local variables and other necessary information. For investigating the contents of stack use anvil.runtime.stack namespace. Though, local variables are not accessible through these functions.

When scripts are called from Anvil server they belong to a zone. Zone's properties, might affect how the script performs, or what it can do. For instance, there might be some libraries available only to certain scripts or paths.

See also  | Language reference
Contributes notes:
Add a note
What's new | Anvil