recursionLimit -- set the limit on recursion

Synopsis

• Usage:
recursionLimit = n
• Inputs:
• Consequences:
• The recursion depth limit for the interpreter is set to n.

Description

Each time a function is called, the recursion depth is incremented by 1, and each time a function returns, the recursion depth is decremented. This limit on recursion depth is a way to detect infinite loops.

For the programmer

The object recursionLimit is an integer.