From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: 15540-done@debbugs.gnu.org
Subject: bug#15540: Circular module imports vs. #:select (2.0.9)
Date: Tue, 28 Feb 2017 11:50:00 +0100 [thread overview]
Message-ID: <874lzepp2f.fsf@pobox.com> (raw)
In-Reply-To: <877gdqqjhx.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 06 Oct 2013 21:36:42 +0200")
On Sun 06 Oct 2013 21:36, ludo@gnu.org (Ludovic Courtès) writes:
> Consider these two modules:
>
> (define-module (a) #:use-module (b) #:export (from-a))
> (define from-a 1)
>
>
> and:
>
> (define-module (b) #:use-module ((a) #:select (from-a)) #:export (from-b))
> (define from-b 2)
>
>
> This fails:
>
> scheme@(guile-user)> ,use(a)
> While executing meta-command:
> ERROR: no binding `from-a' in module (a)
>
>
> whereas this succeeds (starting from a fresh Guile):
>
> scheme@(guile-user)> ,use(b)
> scheme@(guile-user)> from-b
> $1 = 2
>
> Problem is that ‘define-module*’ processes exports after imports.
Applied a version of your patch to master. Making the test was quite
tricky!
Andy
prev parent reply other threads:[~2017-02-28 10:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-06 19:36 bug#15540: Circular module imports vs. #:select (2.0.9) Ludovic Courtès
2013-10-08 20:01 ` Ian Price
2016-06-21 11:08 ` Andy Wingo
2017-02-28 10:50 ` Andy Wingo [this message]
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=874lzepp2f.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=15540-done@debbugs.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).