[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Module problems
From: |
Matt Gushee |
Subject: |
[Chicken-users] Module problems |
Date: |
Sun, 07 Dec 2008 21:21:33 -0700 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080726) |
Hello, all--
I am attempting to port a PDF generation library from PLT to Chicken (as
described at some length in my 'Compiling w/ syntax-case' post). Most of
the code is pretty portable, but the modules are proving to be a bit of
a headache. I am wondering about several issues in this vein:
* The original code has constructs like this:
(provide (all-defined-except
and
(provide (all-from "pdf-util.ss")
As far as I can tell from the docs, in syntax-case there is nothing
comparable to the above--it appears that the only way to specify
which symbols are exported is to explicitly list them. Is that right,
or am I missing something?
* There is a pdf-examples file which contains several sample programs
using the pdf library. The PLT version says:
(require (prefix pdf: "pdf.ss"))
I am attempting to replicate that effect with:
(import* (add-prefix pdf pdf))
I'm not sure if that is supposed to work or not (Note to syntax-case
maintainers: it would be helpful if your docs were more explicit as
to which features of the syntax-case module system are supported).
At any rate, when I load that into the REPL, I see:
Warning: the following toplevel variables are referenced but \
unbound:
pdf:with-document-to-file (in ex1)
pdf:with-page (in ex1)
pdf:in-text-mode (in ex1)
... etc.
And the imported symbols are unavailable, either with or without the
prefix.
Anyone have suggestions?
--
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language : matt.gushee.net/rascl/ :
- [Chicken-users] Module problems,
Matt Gushee <=