Create new empty shared variable
shared name
(shared name1 name2 ...)
shared [name1 name2 ...]
Creates a new shared variable if shared variable with a name is not yet existing, with no initial value
assigned to the new variable (nullp
returns true
).
Multiple variables can be created using optional arguments or a list of names passed as an argument of the instruction.
Example:
shared "x
print null? :x
make "x 1
print null? :x
Output:
True
Fals
See also:
local - create new empty local variable
global - create new empty global variable
make, name - set or create global variable
nullp, null? - is this an empty value?
namep, name? - is variable defined?
Table of Content