From: Andy Wingo <wingo@igalia.com>
To: Arvydas Silanskas <nma.arvydas.silanskas@gmail.com>
Cc: 47538-close@debbugs.gnu.org
Subject: bug#47538: ice-9 regex procedures not found when trying to use from r7rs-style defined library
Date: Sun, 02 May 2021 15:50:00 +0200 [thread overview]
Message-ID: <87mttdjldj.fsf@igalia.com> (raw)
In-Reply-To: <CAPh7weB3gKPSFRyw31Zawp4mL9Ej+ePTesbR=k4nWc4-TQ0egg@mail.gmail.com> (Arvydas Silanskas's message of "Thu, 1 Apr 2021 10:06:39 +0300")
Hi,
On Thu 01 Apr 2021 09:06, Arvydas Silanskas <nma.arvydas.silanskas@gmail.com> writes:
> foo.scm:
> (define-library (foo)
> (import
> (scheme base)
> (ice-9 regex))
> (export bar)
>
> (begin
> (define (bar)
> (make-regexp "a"))))
The issue AFAIU is that make-regexp is part of (guile), and not exported
by (ice-9 regex). You would need to add (only (guile) make-regexp) to
your import set. I know it's somewhat terrible but perhaps in the near
future we will be able to replace this regexp support with something
more consistent.
Please reopen if I misunderstood the bug.
Cheers,
Andy
next prev parent reply other threads:[~2021-05-02 13:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 7:06 bug#47538: ice-9 regex procedures not found when trying to use from r7rs-style defined library Arvydas Silanskas
2021-05-02 13:50 ` Andy Wingo [this message]
2021-05-02 15:32 ` lloda
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=87mttdjldj.fsf@igalia.com \
--to=wingo@igalia.com \
--cc=47538-close@debbugs.gnu.org \
--cc=nma.arvydas.silanskas@gmail.com \
/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).