<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Transient String Words in String Library
Swaps the topmost two strings on the string stack.
$" red" $" blue" SWAP$ $.s \ place red and blue on the string stack (blue on top) and swap them, then display the string stack.
$" red" $" blue" SWAP$ $.s
A run-time error occurs if there are less than two strings on the string stack.