AMOSi:Set Stack

From Amiga Coding
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