<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


IMMEDIATE Search:

In Compilation Words in TurboForth Kernal

Word Name: IMMEDIATE
Type: Standard word
Data Stack Signature: --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Toggles the immediate bit on/off in the last created word.

Example:

: 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

Comment:

An immediate word will be executed (rather than compiled) when it is encountered during the compilation of a colon definition.

See Also: : (colon) 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>