previous | index | next

Stack Overflow

Q: Will the stack overflow during evaluation of:
     (evaluate "1+2+3+4+5+6+7+8+9") ?

A: No (why? - Exercise 13.8)

Q: Will the stack overflow during evaluation of:

     (evaluate "(1+(2+(3+(4+(5+(6+(7+(8+9))))))))") ?

A: Yes (why? - Exercise 13.8)

Remedy:

     (define make-ra-stack
       (lambda ()
         (make-ra-stack-with-at-most new-limit)))
However, the choice of new-limit is arbitrary and inflexible.

previous | index | next