[top][index]
search for:

setrecursionlimit ZZ -- set the limit on recursion

Synopsis:

  • Usage: m = setrecursionlimit n
  • Function: setrecursionlimit
  • Input:
  • n, an instance of class ZZ: the desired limit on recursion depth
  • Output:
  • m, an instance of class ZZ: the previous limit
  • 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.


    [top][index]
    search for: