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