<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Compilation Words in TurboForth Kernal
Toggles the immediate bit on/off in the last created word.
: BOO! ( -- ) CR ." Boo! I am immediate. I execute at compile time" CR ; IMMEDIATE : TEST ( -- ) 1 2 3 BOO! . . . ;
Boo! I am immediate. I execute at compile time
TEST 3 2 1 ok:0
3 2 1 ok:0
An immediate word will be executed (rather than compiled) when it is encountered during the compilation of a colon definition.