Create new empty global variable

global name
(global name1 name2 ...)
global [name1 name2 ...]

Creates a new global variable if global 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.


global "x
print null? :x
make "x 1
print null? :x



See also:

local - create new empty local variable
shared - create new empty shared variable
make, name - set or create global variable
nullp, null? - is this an empty value?
namep, name? - is variable defined?

Table of Content