From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] Compile in a fresh module by default
Date: Thu, 15 Oct 2009 11:42:24 +0200 [thread overview]
Message-ID: <m33a5luh6n.fsf@pobox.com> (raw)
In-Reply-To: <87k4yy75tm.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 14 Oct 2009 10:11:49 +0200")
On Wed 14 Oct 2009 10:11, ludo@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/
next prev parent reply other threads:[~2009-10-15 9:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 20:41 [PATCH] Compile in a fresh module by default Ludovic Courtès
2009-09-20 22:44 ` Ludovic Courtès
2009-10-14 2:26 ` Julian Graham
2009-10-14 8:11 ` Ludovic Courtès
2009-10-15 9:42 ` Andy Wingo [this message]
2009-10-15 11:51 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m33a5luh6n.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).