5.5.6. Lexical Addressing
Exercise 5.39

lexical-address-lookup and lexical-address-set! procedures

Write a procedure lexical-address-lookup that implements the new lookup operation. It should take two arguments -- a lexical address and a run-time environment -- and return the value of the variable stored at the specified lexical address. Lexical-address-lookup should signal an error if the value of the variable is the symbol *unassigned*. Also write a procedure lexical-address-set! that implements the operation that changes the value of the variable at a specified lexical address.


Nobody's finished this exercise yet. You'll be the first!


There are no comments yet.

Authentication required

You must log in to post a comment.

Login