unofficial mirror of 
 help / color / mirror / Atom feed
From: Jean Abou Samra <>
To: Zelphir Kaltstahl <>,
	Guile User <>
Subject: Re: Guile import issue
Date: Thu, 15 Jun 2023 12:33:32 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

Le jeudi 15 juin 2023 à 12:29 +0200, Jean Abou Samra a écrit :

> As you can see, the library macro has turned the (export real-part) part into a re-export from (guile).

Sigh. This is the code from `module/ice-9/r6rs-libraries.scm`:

    (define (compute-exports ifaces specs)
      (define (re-export? sym)
        (or-map (lambda (iface) (module-variable iface sym)) ifaces))
      (define (replace? sym)
        (module-variable the-scm-module sym))

This will just treat anything as re-export if it's defined in one of the imported modules, even if the module being defined also has a same-named binding...

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-06-15 10:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-14 20:15 Guile import issue Zelphir Kaltstahl
2023-06-15  9:59 ` Unstable Horse via General Guile related discussions
2023-06-15 12:27   ` Zelphir Kaltstahl
2023-06-15 10:29 ` Jean Abou Samra
2023-06-15 10:33   ` Jean Abou Samra [this message]
2023-06-15 12:25     ` Zelphir Kaltstahl

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:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).