<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Local Variable Words in Local Variables Library
Pops the top of the data stack into the named local variable.
: TEST ( n -- ) LOCALS{ fred } SET fred \ pop top of stack and load into fred ." FRED IS " fred . CR ;
The name of the local variable must follow the word SET.
SET