问题
I have a simple local variable in Forth:
: subtraction { a b } a b - ;
I would like to assign the output of
a b -
to another variable, say c.
Is this possible?
回答1:
TO
works for both VALUE
s and local variables, so:
: subtraction { a b | c -- } a b - to c ;
来源:https://stackoverflow.com/questions/49115901/forth-local-variable-assigning-variables