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


SET Search:

In Local Variable Words in Local Variables Library

Word Name: SET
Type: Immediate compiling word
Data Stack Signature: n --
Return Stack Signature: --
Availability: V1.2
Description:

Pops the top of the data stack into the named local variable.

Example:

: TEST ( n -- )
  LOCALS{ fred }
  SET fred \ pop top of stack and load into fred
  ." FRED IS " fred . CR
;

Comment:

The name of the local variable must follow the word SET.

See Also: +SET 

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