guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Compile in a fresh module by default


From: Andy Wingo
Subject: Re: [PATCH] Compile in a fresh module by default
Date: Thu, 15 Oct 2009 11:42:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

On Wed 14 Oct 2009 10:11, address@hidden (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

[Prev in Thread] Current Thread [Next in Thread]