Difference between revisions of "AMOSi:Set Stack"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
(No difference)
|
Revision as of 02:45, 17 November 2007
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