Difference between revisions of "ObjectType:variablescope"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
== Methods == | == Methods == | ||
*'''Clear''': Deletes all variables within this scope | *'''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 | + | *'''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 | *'''DeleteVariable['''name''']''': Deletes the variable in this scope with the given name, if any | ||
*'''GetIterator['''[[ObjectType:iterator|iterator]] object''']''': Initializes the given [[ObjectType:iterator|iterator]] object for iteration of this variable scope | *'''GetIterator['''[[ObjectType:iterator|iterator]] object''']''': Initializes the given [[ObjectType:iterator|iterator]] object for iteration of this variable scope |
Revision as of 20:56, 10 April 2006
Contents
Overview
variablescope | |
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.
Members
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.
Methods
- 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