]> git.rkrishnan.org Git - sicp.git/blob - src/sicp/ex4_17.rkt
Solution to 4.33. This had been difficult to get right, though conceptually it was
[sicp.git] / src / sicp / ex4_17.rkt
1 #lang racket
2
3 #|
4
5 There will be an extra frame because of the `let' statements. 
6
7 The lambdas are evaluated only when called. So, if we put all the definitions on the top
8 before the statements which actually use them, then we already have 'sumultaneous scope'
9 implemented. Infact that is the assumption we had while implementing 4.16. The definitions
10 can contain references to other variables not defined yet, because they will be looked up
11 only when we call it with a value.
12
13 |#