Saturday, May 30, 2009

Ex-1.6

That'll fall inside an infinite recursion.

new-if is a procedure, due to applicative-order evaluation behavior, interpreter will try to evaluate all the args passed to new-if(before starting to evaluate its body) which in this case include call to sqrt-iter again.

No comments:

Post a Comment