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


VARIABLE Search:

In Compilation Words in TurboForth Kernal

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

Creates a variable using the name immediately following in the terminal input buffer.

Example:

VARIABLE DELAY
100 DELAY !
(stores 100 in the variable DELAY)
DELAY @ . (fetches the variables value and displays it (displays 100))

Comment:

Variables are read and set with @ and !.

VARIABLEs should not be defined within a colon definition.

See Also: !  @  CONSTANT  VALUE 

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