AMOSi:Set Stack

From Amiga Coding
Revision as of 01:51, 17 November 2007 by Spellcoder (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sets the maximum number of recursive procedure calls. Recursion is a clever technique which allows you to call a procedure from INSIDE its own definition. Every time you call a procedure, AMOS allocates a set amount of memory to hold the local variables. So if you attempt to nest a procedure call more than about fifty times, you`ll run out of space. You can increase this allocation with SET STACK. Use it if you get an "out of stack space" message.


Set Stack maximum_no_of_recursive_procedure_calls