This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Redefining functions interactively
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 15 Apr 2003 16:33:44 -0700
- Subject: Re: Redefining functions interactively
- References: <19360.1050392248@mercedsystems.com> <3E9C2EB3.4030203@bothner.com>
> However, Kawa optimizes functions using the syntax
> (define (f args) ...)
> assuming that f is constant.
That makes sense, thanks. I was hoping there was a way to redefine "f"
and use a class loader to get the redefinition into my JVM.
I know I can't do this now, but consider: I have a module-static module
M and functions F and G defined in that module. When compiling that
module, Kawa will create a class M with (among other things) static
methods F and G. If I use F then the class M will be loaded into my
JVM.
Now, what I would like to do is redefine F, recompile M, and then
somehow have Kawa load the new class definition of M into my JVM.
Anyway, thanks for the (set! F (lambda () ...)) work around.
Regards,
Chris Dean