[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15540: Circular module imports vs. #:select (2.0.9)
From: |
Andy Wingo |
Subject: |
bug#15540: Circular module imports vs. #:select (2.0.9) |
Date: |
Tue, 28 Feb 2017 11:50:00 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
On Sun 06 Oct 2013 21:36, address@hidden (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 in Thread] |
Current Thread |
[Next in Thread] |
- bug#15540: Circular module imports vs. #:select (2.0.9),
Andy Wingo <=