This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Requiring modules in source code
- From: Per Bothner <per at bothner dot com>
- To: Kaloian Doganov <kaloian at doganov dot org>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 31 May 2006 08:43:43 -0700
- Subject: Re: Requiring modules in source code
- References: <E1FlMuT-0006ZR-VE@localhost.localdomain>
Kaloian Doganov wrote:
Is it possible to write Kawa module that can be required without being
first explicitly compiled and serialized (to a .class-file or .zip-file)
with "kawa -C"?
Not easily, but I am planning on doing it. My idea is that:
(require "filename")
will be equivalent to compiling the "filename" and then immediately
requiring the compiled module - except that class files won't actually
be written out in to the filesystem. That means using a special
class-loader, so there are some issues to consider in that area.
The servlet (web server) support already works like this, though
it doesn't yet support dependencies.
--
--Per Bothner
per@bothner.com http://per.bothner.com/