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


: (colon) Search:

In Compilation Words in TurboForth Kernal

Word Name: : (colon)
Type: Standard compiling word
Data Stack Signature: --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Calls HEADER to build a dictionary entry and begins compilation of a colon definition (sets STATE to 1).

Example:

: TEST 1 2 3 . . . ;

Comment:

: is used to begin a word, or, to borrow a phrase from other languages, a subroutine. : must be followed by a space, then the name of the word/subroutine. Normal Forth code, and numbers (literal) may then follow. The definition ends with ; (semi-colon).

See Also: ; (semi-colon) 

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