This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dynamic scope



My apology for the last message. GNUS burped. :)

Sascha Ziemann <szi@aibon.ping.de> writes:

> 	       (load-from-list to-html)    ; <--
> 	       (eval sml-document))

Both of these lines have the same problem: It's not clear which
environment should be used for either load or eval. R4RS decides that
they should work in top-level environment (I'm not quite sure about
rationale for this). There is one standard alternative (implemented in
MIT Scheme, among others): make environments first-class objects. Then
pass them as arguments to eval and load. Like this:

(eval some-code (current-environment))

-- 
I refuse to use .sig