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


OVER$ Search:

In Transient String Words in String Library

Word Name: OVER$
Type: Standard word
Data Stack Signature: -- / ss: s1 s2 -- s1 s2 s1
Return Stack Signature: --
Availability: V1.2
Description:

Places a copy of the 2nd string on the string stack on the top of the string stack.

Example:

$" red" $" blue" OVER$ $.s

Comment:

A run-time error occurs there there are less than two strings on the string stack, or if there is insufficient space on the string stack to accomdate the string.

See Also: DROP$  SWAP$  NIP$ 

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