University of Virginia, Department of Computer Science
CS200: Computer Science, Spring 2004

Notes: Friday 27 February 2004


Places, Frames and Envrionments

(define nest 
  (lambda (x)
    (lambda (x)
      (+ x x))))
Compound Application Rule
  1. Construct a new frame, enclosed in the environment of this procedure (that is, the parent of this frame is the frame this procedure's environment points to)
  2. Make places in that frame with the names of each parameter
  3. Put the values of the parameters in those places
  4. Evaluate the body in the new environment
Why must expressions be evaluated in an environment?

How do we find the value associated with a name in an environment?
Using these Materials