University of Virginia Computer Science
CS150: Computer Science, Fall 2005

7 October 2005

CS150 Notes 19 (7 October 2005)

Upcoming Assignments


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?

"); print ( $res[$first] ) ; print (""); ?>
CS 150: Computer Science
University of Virginia
Using these Materials