guile-user
[Top][All Lists]
Advanced

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

Re: Weird cache issue


From: Zelphir Kaltstahl
Subject: Re: Weird cache issue
Date: Tue, 15 Mar 2022 22:44:16 +0000

Hi Maxime!

On 3/15/22 20:10, Maxime Devos wrote:
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.

I did not know that! I might be using (library ...) wrong all along then. Thanks for the hint!

Regards,
Zelphir

--
repositories: https://notabug.org/ZelphirKaltstahl




reply via email to

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