From: Damien Mattei <damien.mattei@gmail.com>
To: Hans-Werner Roitzsch <hwroitzsch@posteo.net>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: using a module : rename a single definition
Date: Wed, 27 Mar 2024 12:44:23 +0100 [thread overview]
Message-ID: <CADEOadeuXJXhFPjC_rb03FDCFP7oz53jxzc8hUp9s23QiADe1g@mail.gmail.com> (raw)
In-Reply-To: <def5aa88-df5a-4920-ac57-58f9e9eb7079@posteo.net>
thank you for the advice,for now i'm trying with Racket r6rs support and it
is not easy,
the solution in guile seems to be to rename or to use the define-module
style instead of the r6rs library, if only a name in the new library is the
same as an existing name in guile library it is not usable as it is
re-exported as the guile original binding.
If really the problem is so important i'm not sure to use r6rs with guile
now.
regards,
damien
On Wed, Mar 27, 2024 at 11:47 AM Hans-Werner Roitzsch <hwroitzsch@posteo.net>
wrote:
> Hello Damien,
>
> Be aware though, that porting some exports may not work without renaming
> them:
>
> https://lists.gnu.org/archive/html/guile-user/2023-06/msg00020.html
>
> Regards,
> Zelphir
>
> On 3/27/24 08:42, Damien Mattei wrote:
> > yes it should works. I trying to port all my scheme code in R6RS library
> > style for compatibility,it's a bit complex depending the integration of
> > R6RS in a particular scheme but i think there should be a compatibility
> > advantage doing that.
> >
> > Damien
> >
> > On Wed, Mar 20, 2024 at 12:09 AM Maxime Devos <maximedevos@telenet.be>
> > wrote:
> >
> >> Yes, with ‘library’ or ‘define-library’ forms.
> >>
> >> (see
> >> https://www.gnu.org/software/guile/manual/html_node/R6RS-Libraries.html
> )
> >>
> >>
> >>
> >> (library (insert name here)
> >>
> >> (export [insert exports here])
> >>
> >> (import
> >>
> >> (guile) ; standard imports
> >>
> >> (rename (ice-9 popen) (open-pipe pipe-open)))
> >>
> >> [insert definitions here])
> >>
> >>
> >>
>
prev parent reply other threads:[~2024-03-27 11:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-03 8:46 using a module : rename a single definition Damien Mattei
2024-03-03 11:50 ` Tomas Volf
2024-03-03 14:37 ` Damien Mattei
2024-03-03 12:55 ` tomas
2024-03-19 23:09 ` Maxime Devos
2024-03-27 7:42 ` Damien Mattei
2024-03-27 10:47 ` Hans-Werner Roitzsch
2024-03-27 11:44 ` Damien Mattei [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=CADEOadeuXJXhFPjC_rb03FDCFP7oz53jxzc8hUp9s23QiADe1g@mail.gmail.com \
--to=damien.mattei@gmail.com \
--cc=guile-user@gnu.org \
--cc=hwroitzsch@posteo.net \
/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).