-
Notifications
You must be signed in to change notification settings - Fork 8
local
Brom Bresenham edited this page Mar 19, 2025
·
4 revisions
local a : Type
local a = initial_value
local a=initial_value : Type
local a=value1, b=value2
local a, b, ... : Type
- If no type is specified, the type of a
local
is inferred from its initial assignment. - A local variable exists from its declaration to the end of its enclosing control structure (
if
,block
, etc.). - Local variables can be declared in routines, methods, and global methods.
- Local variables can also be defined at the library scope, outside of any
class
declaration, in which case they are local to the impliciton_launch()
routine of the library.