|
|
Global variables can be accessed by all threads in a Desktop session. They are created by prefixing the variable name with ``:''.
For example:
:count=10creates a global variable count with the value ``10''.
Global variables can be accessed with the constructs $:var, $#:var, and so forth. Global variables are distinct from local variables with the same name, so you can have:
count=12and
:count=10as separate variables. However, $var will give the value of the global variable var if no local variable has been defined.
See also: