Node:Return stack, Next:Locals stack, Previous:Floating point stack, Up:Stack Manipulation
A Forth system is allowed to keep local variables on the
return stack. This is reasonable, as local variables usually eliminate
the need to use the return stack explicitly. So, if you want to produce
a standard compliant program and you are using local variables in a
word, forget about return stack manipulations in that word (refer to the
standard document for the exact rules).
>rw -- R:w core ``to-r''
r>R:w -- w core ``r-from''
r@-- w ; R: w -- w core ``r-fetch''
rdropR:w -- gforth ``rdrop''
2>rd -- R:d core-ext ``two-to-r''
2r>R:d -- d core-ext ``two-r-from''
2r@R:d -- R:d d core-ext ``two-r-fetch''
2rdropR:d -- gforth ``two-r-drop''