CONSTANT:
Factor handbook > The language > Words > Constants

Next:define-constant ( word value -- )


Vocabulary
syntax

Syntax
CONSTANT: word value


Inputs and outputs
worda word
valuean object


Word description
Creates a word which pushes a value on the stack.

Examples
CONSTANT: magic 1 CONSTANT: science 0xff0f


See also
define-constant

Definition