Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
value
the new value
variable
a 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