<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Transient String Words in String Library
Moves the topmost string on the string stack to the specified string constant.
10 $CONST COLOUR \ declare a string constant $" purple" COLOUR >$CONST \ place string on stack, and move it to the string constant COLOUR .$CONST \ display the string constant
10 $CONST COLOUR
$" purple" COLOUR >$CONST
COLOUR .$CONST
A run-time error occurs if the string stack is empty, or if the string constant is not large enough to accomdate the string.