immediate  ( -- )

published: 28 January 2023 / updated 28 January 2023

Lire cette page en français

 

vocabulary: forth

Make the most recent definition an immediate word.

Sets the compile-only lexicon bit in the name field of the new word just compiled. When the interpreter encounters a word with this bit set, it will not execute this word, but spit out an error message. This bit prevents structure words to be executed accidentally outside of a compound word.