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


Vocabulary
namespaces

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


Word description
Outputs the value of a variable in the global namespace.

Definition
USING: accessors namespaces.private ;

IN: namespaces

: get-global ( variable -- value ) global box-at value>> ;
inline