-
Notifications
You must be signed in to change notification settings - Fork 2
scope
bergsma edited this page Jul 31, 2014
·
2 revisions
The scope of a variable defines which parts of the program can access it. By default, HS variables which are created automatically are global in scope. This means that the variable is available to all methods in the program. To change the default scope from global to local, issue the following command:
local ;
_
To revert back to global scope, issue the command:
global ;
_
Note that all variables previously created with global or local scope remain that way.
Any individual variable can be made global or local by supplying the variable as an argument to local or global. For example:
boolean RUNSTATE = 1;
global ( RUNSTATE );
_