|
Hi all,
Still working on this problem 1d, and I came up with some strange behavior that I was hoping somebody could explain.
I've been trying to modify the eval by simply creating a closure (bundle of function and env) any-time eval encounters a lambda. I've made the closures as lists (list 'closure function env). where the function is everything in the lambda expression except the 'lambda itself. Closures then evaluate the same way lambda's did before, except with their own environment attached. However, every time I do this, or any variation of this, the test program returns #<void>, which I don't really understand, since all I'm basically doing is changing the 'lambda to 'closure, and the one env to another env? Any ideas, comments, suggestions? Thanks.
Mamun
|
to: