Terms.
Know the following terms, all of which are
in the index of the text or in notes I've provided. Be able
to define them
What does the following code return when
Explain your answers.
What does the following code return when
Explain your answers.
Here's an expression in our defined language involving the
try-handle construct: what is the value of the expression?
Write a Scheme procedure to do X
(where X is something not too involved).
Extend our basic interpreter to handle Y
(where Y is something not too involved).
Extend our continuation-passing interpreter to handle Z
(where Z is something not too involved).
For part (a) the answers should be:Thanks to Kim Chiu for pointing out the problem120for lexical scoping and480for dynamic scoping
For part (b) the answers should be:1024for lexical scoping and20180for dynamic scoping