Re: Fwd: [Chicken-announce] [ANN] CHICKEN 6.0.0pre1(prerelease)developmentsnapshot available

Anton Idukov via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <CAMJCnqWeTs8X9JqEQaGXDwP-OtxWMmDfk+onqA6Gy2koKF5gxA@mail.gmail.com>
Hi all! I have a note about one caveat of .sld portable R7RS library
support in C6 note.
In particular with *<include>* clause
Next, example test library *mod* and CHICKEN module *cmod*, all files in
the same catalog








*$ cat mod.sld (define-library (mod)  (export fx mx)  (import (scheme
base))  (include "code.scm")  ) ;; end of mod*







*$ cat code.scm (define (fx x)  (+ x x))(define-syntax mx  (syntax-rules
()    ((_ x) (+ x x))))*







*$ cat cmod.scm (module cmod (fx mx)  (import (scheme base))  (include
"code.scm")  );; end of cmod*
and CSI from 6.0.0pre does not load mod.sld




















*$ csi6CHICKEN(c) 2008-2022, The CHICKEN Team(c) 2000-2007, Felix L.
WinkelmannVersion 6.0.0 (rev 4b1f73f2)linux-unix-gnu-x86-64 [ 64bit dload
ptables ]Type ,? for help.; loading /home/anton/.csirc ...; loading
/opt/call-cc.org/chicken-6.0.0pre1b/lib/chicken6/12/chicken.load.import.so
<http://call-cc.org/chicken-6.0.0pre1b/lib/chicken6/12/chicken.load.import.so>
...#;1> ,l mod.sld; loading mod.sld ...; including code.scm ...Error:
(include) during expansion of (define-library ...) - invalid
include-filename: "code.scm" Call history: mod.sld:1  (define-library (mod)
(export fx mx) (import (scheme base)) (include "code.scm")) <--#;1> *
so, no way to (import (mod))
Of course,  CHICKEN standard module* cmod* loaded and imported well








*#;1> ,l cmod.scm; loading cmod.scm ...; including code.scm ...#;1> (import
(cmod))#;2> (fx 2)4#;3> (mx 2)4*
*Q: It looks like a failure of the library load layer, but, is there some
custom import-with-include workaround yet?*

P.S. Obvious  mod.sld normally imported in gsi and guile, i've checkd.
Thank you!





пт, 28 мар. 2025 г. в 11:55, <[email protected]>:

> > Hi all, a small note about the C6 types, - in the documentation
> > https://wiki.call-cc.org/man/6/Types there is no 'bytevector' VALUETYPE,
> > for some reason? Maybe it is alias of u8vector?
>
> That was an omission in the docs - thanks for pointing this out.
>
>
> felix
>
>
>
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.