Handbook
Glossary
Constants
Factor handbook
»
The language
»
Words
Prev:
Word aliasing
Next:
Primitives
There is a syntax for defining words which push literals on the stack.
Define a new word that pushes a literal on the stack:
CONSTANT:
Define an constant at run-time:
define-constant
( word value -- )