This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Redefining functions interactively


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]