Difference between revisions of "AMOSi:Set Stack"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 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