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


CONSTANT Search:

In Compilation Words in TurboForth Kernal

Word Name: CONSTANT
Type: Immediate word
Data Stack Signature: n --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Creates a CONSTANT with the value n.

Example:

10 CONSTANT TEN
TEN .

(displays 10)

Comment:

The name is taken from the terminal input buffer.

CONSTANTs should not be defined within a colon definition.

See Also: VALUE  VARIABLE 

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