guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird cache issue


From: Maxime Devos
Subject: Re: Weird cache issue
Date: Tue, 15 Mar 2022 20:10:53 +0100
User-agent: Evolution 3.38.3-1

Zelphir Kaltstahl schreef op di 15-03-2022 om 17:54 [+0000]:
> ~~~~013.scm~~~~
> (library (fileio)
>    (export )
>    (import
>     (except (rnrs base) let-values)
>     (only (guile)
>           lambda* λ
>           ;; printing
>           display
>           simple-format)
>     (fileio)))

Shouldn't the code below be put inside the library form?
While these imports might be available below as well due to
how 'library' is 'define-module' followed by some extra code
(see ice-9/r6rs-libraries.scm), it is not something you can
rely upon:

             ;; It would be nice to push the module that was current before the
             ;; definition, and pop it after the library definition, but I
             ;; actually can't see a way to do that. Helper procedures perhaps,
             ;; around a fluid that is rebound in save-module-excursion? Patches
             ;; welcome!

Greetings,
Maxime.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]