Stack traces: Difference between revisions
Content deleted Content added
Added Forth |
|||
Line 247: | Line 247: | ||
=={{header|Forth}}== |
=={{header|Forth}}== |
||
In Forth, calling sequence information is kept on the Return Stack.Some Forth compilers have the word "R.S" that dumps the contents of the Return Stack - just like ".S |
In Forth, calling sequence information is kept on the Return Stack.Some Forth compilers have the word "R.S" that dumps the contents of the Return Stack - just like ".S", which dumps the contents of the Data Stack. Note this may also include stack frames, local variables and temporary values. Forth has no way of knowing which is which, because that is usually left to the programmer. |
||
{{works with|4tH|3.60.0}} |
{{works with|4tH|3.60.0}} |
||
Line 264: | Line 264: | ||
THEN ." (TORS) " DROP >R ; |
THEN ." (TORS) " DROP >R ; |
||
[THEN]</lang> |
[THEN]</lang> |
||
=={{header|J}}== |
=={{header|J}}== |
||