On Jun 14, 2009, at 4:27 AM, Ramana Kumar wrote:

I have an R6RS script file containing expressions like this

(letrec ((foo (lambda args body-referencing-foo))) (test expr result))

I want expr and body-referencing-foo to be evaluated in a particular
environment extended with the binding for foo. How would you go about
setting that up?

Doesn't letrec already do just that for you?  (i.e., bind foo in both
the letrec right-hand-side expressions and body)  So, by normal lexical
scope rules, everything should work just fine.

Maybe I don't understand the problem you're trying to solve and why you
need all the heavy-weight machinery that you're using.

Aziz,,,

Reply via email to