Feedback Show each 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Assignment #7, due Monday 20 November (Mike O'Donnell)
Re: Question prob. #1: using eval function (Andy Crowe)
Date: 2000, Nov 19
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

How detailed do you want our hand-calculation using this function to be.
If you show each step of eval and apply, that should be enough. For other functions called by eval and apply, you can skip the internal recursions, and go directly to the final returned value.

I'm a little lost with some of the notation for which I cannot find definitions (examples being apval and maplist).
I thought I copied everything relevant, but I don't have the materials at home to check now. maplist sounds like a function that applies another function to every element of a list. apval I don't remember. If anyone has an old LISP manual, or the library version, and can post the idea, that will be a big help. I think that there's enough in the part that I copy to at least infer what the subsidiarly functions need to do.

Should we try to use the eval function you defined for a scheme-based LISP interpreter (using a lambda for our defined function)?
That's a sensible idea, but I'm not confident that my definition of eval is sufficiently debugged. When I tried it on my own favorite scope tester, it failed, instead of giving the static-scope result. Common LISP also failed. We might be able to get my static-scoped eval working, but it doesn't go through exactly the same pattern of recursion as the original LISP interpreter.



Mike O'D.


to: "Show each"