From Lavish Software Wiki
Jump to navigation Jump to search


Object Type Vitals
Defined By LavishScript
Inherits none
Reduces To NULL
Variable Object Type variablescope
Uses Sub-Types no
C/C++ Type CVariableScope *

A variablescope is a container for variables. When a scope is destroyed, so are its variables. This object type is used for all variable scopes -- when a new variable is created, it has to be placed in an available scope.


All variables contained in the variablescope are variablescope members. For example, if an int variable named Test is within the scope, then it is a member of the variablescope.


  • Clear: Deletes all variables within this scope
  • CreateVariable[object type,name,...]: Creates a new variable in this scope of the given object type and name. Any extra parameters are passed to object initialization
  • DeleteVariable[name]: Deletes the variable in this scope with the given name, if any
  • GetIterator[iterator object]: Initializes the given iterator object for iteration of this variable scope

See Also

LavishScript Object Types