Difference between revisions of "ObjectType:variablescope"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(One intermediate revision by the same user not shown)
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
  
 
== See Also ==
 
== See Also ==
* [[LavishScript]]
+
{{LavishScript:ObjectType}}
 
 
[[Category:LavishScript]]
 

Latest revision as of 16:15, 8 July 2018

Overview

Object Type Vitals
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

See Also

LavishScript Object Types