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

lloda <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
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 <[email protected]> wrote:
> 
> Hi,
> 
> On Thu 01 Apr 2021 09:06, Arvydas Silanskas <[email protected]> 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
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.