on ( variable -- ) (original) (raw)

on ( variable -- )
Factor handbook » The language » Dynamic variables » Changing variable values

Next: off ( variable -- )

Vocabulary
namespaces

Inputs

variable a variable, by convention a symbol

Outputs
None

Word description
Assigns a value of t to the variable.

Side effects
Modifies variable

See also
ref-on

Definition

USING: kernel ;

IN: namespaces

: on ( variable -- ) t swap set ; inline