This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Problem with define-private
- To: Jocelyn Paine <popx at pop3 dot ifs dot org dot uk>
- Subject: Re: Problem with define-private
- From: Per Bothner <per at bothner dot com>
- Date: 30 Jan 2001 09:10:51 -0800
- Cc: kawa at sourceware dot cygnus dot com
- References: <Pine.LNX.4.10.10101300817120.16183-100000@pop3.ifs.org.uk>
Jocelyn Paine <popx@pop3.ifs.org.uk> writes:
> Something odd about define-private. Here's a simple
> I load it and call f, and then g isn't found:
> (load "t.scm")
Currently modules only work for compiled code. If you load a Scheme
source file, it is evaluated line-by-line, which is incompatible with
the kind of processing needed for a module.
I would like to change things so that a module is processed as an
entire file when loading, for compatibility with the compiler. That
would actually be trivial, but it would break some things. Notably
defining and using macros in the same source file. I'm working on a
eval-and-compile form to allow forms to be made available both to the
compiler and the run-time environment.
A possible hack is that when the loader sees one of the module commands
(such as module-name) it handles the rest of the file as a single unit.
But I'd rather do something more consistently.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/