set-global ( value variable -- )
Factor documentation > Factor handbook > The language > Global variables
Prev:get-global ( variable -- value )
Next:initialize ( variable quot -- )


Vocabulary
namespaces

Inputs and outputs
valuethe new value
variablea variable, by convention a symbol


Word description
Assigns a value to the variable in the global namespace.

Side effects
Modifies variable

Definition
USING: assocs ;

IN: namespaces

: set-global ( value variable -- ) global set-at ; inline