In the assignment, there are examples that are supposed to show that eval_lambda_expr is wrong, including:
I was trying to figure out what that should return instead, but it looks to me like that is exactly what it's supposed to return, since x is defined as 0 only outside the scope of the lambda expression. What's going on?(eval_lambda_expr '(lambda (x) (lambda (y) x)) '((x 0))) ;Value 5: (lambda (x) (lambda (y) x)) |
You're right, I gave the wrong example by Mike O'Donnell, 2002, Oct 30
to: