]> git.rkrishnan.org Git - sicp.git/commitdiff
solution to 4.17
authorRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Sun, 11 Dec 2011 04:36:44 +0000 (10:06 +0530)
committerRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Sun, 11 Dec 2011 04:36:44 +0000 (10:06 +0530)
src/sicp/ex4_17.rkt [new file with mode: 0644]

diff --git a/src/sicp/ex4_17.rkt b/src/sicp/ex4_17.rkt
new file mode 100644 (file)
index 0000000..cfc14e6
--- /dev/null
@@ -0,0 +1,13 @@
+#lang racket
+
+#|
+
+There will be an extra frame because of the `let' statements. 
+
+The lambdas are evaluated only when called. So, if we put all the definitions on the top
+before the statements which actually use them, then we already have 'sumultaneous scope'
+implemented. Infact that is the assumption we had while implementing 4.16. The definitions
+can contain references to other variables not defined yet, because they will be looked up
+only when we call it with a value.
+
+|#
\ No newline at end of file