On Wed 14 Oct 2009 10:11, l...@gnu.org (Ludovic Courtès) writes:

>> I ask because I'm working on a macro that transforms R6RS library
>> expressions, which contain nested `define' calls, into Guile modules.
>> My code rewrites these defines as location declarations that get
>> exported as part of a module interface (at least, in theory -- right
>> now it just erases them).
>
> Can you give an example of the macro transformation?

(define-syntax foo ...)
(load "file-that-needs-foo")

The load needs to be done relative to the current module, which it is --
unless it's autocompiling, in which case we go through the autocompile
case in boot-9.scm:924 (not the one in load.c), which is missing an
#:env (current-module).

Probably needs to be fixed before today's release.

Andy

-- 
http://wingolog.org/


Reply via email to