GNU bug report logs - #47538
ice-9 regex procedures not found when trying to use from r7rs-style defined library

Previous Next

Package: guile;

Reported by: Arvydas Silanskas <nma.arvydas.silanskas <at> gmail.com>

Date: Thu, 1 Apr 2021 07:42:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> igalia.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 47538 <at> debbugs.gnu.org (full text, mbox):

From: lloda <lloda <at> sarc.name>
To: Andy Wingo <wingo <at> igalia.com>
Cc: Arvydas Silanskas <nma.arvydas.silanskas <at> gmail.com>, 47538 <at> debbugs.gnu.org
Subject: Re: bug#47538: ice-9 regex procedures not found when trying to use
 from r7rs-style defined library
Date: Sun, 2 May 2021 17:32:53 +0200
Perhaps an acceptable fix would be to re-export from (ice-9 regex) before eventually deprecating the other export.

> On 2 May 2021, at 15:50, Andy Wingo <wingo <at> igalia.com> wrote:
> 
> Hi,
> 
> On Thu 01 Apr 2021 09:06, Arvydas Silanskas <nma.arvydas.silanskas <at> 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
> 
> 
> 





This bug report was last modified 4 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.