Closed jeandrek closed 8 years ago
Oh. I was planning to implicitly pass the values of local variables of the outer procedure as arguments to the inner procedure. But then assignment won't work properly in cases like
(defproc test (string) (defproc local-procedure () (set string "Goodbye.")) (display-line string) (local-procedure) (display-line string)) (test "Hello.")
which should output
Hello. Goodbye.
but with my idea output
Hello. Hello.
I could pass references but I have no idea how. Closing, for now at least
Oh. I was planning to implicitly pass the values of local variables of the outer procedure as arguments to the inner procedure. But then assignment won't work properly in cases like
which should output
but with my idea output