This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Problems with scoping of simple class definitions?
- From: "Dominique Boucher" <dominique dot boucher at nuecho dot com>
- To: <kawa at sources dot redhat dot com>
- Date: Thu, 14 Oct 2004 14:17:20 -0400
- Subject: Problems with scoping of simple class definitions?
- Reply-to: <dominique dot boucher at nuecho dot com>
Hi,
I'm trying to run some code in the interpreter instead of compiling it, and
I experience some weird behaviors from Kawa wrt define-simple-class:
#|kawa:1|# (define-simple-class <A> (<Object>))
#|kawa:2|# (make <A>)
A@1de17f4
#|kawa:3|# (define (is-an-A? x) (instance? x <A>))
#|kawa:4|# (is-an-A? (make <A>))
java.lang.NoClassDefFoundError: A
at atInteractiveLevel.isIsAn$MnA$X(<stdin>:3)
at atInteractiveLevel.apply(<stdin>)
at gnu.mapping.CpsMethodProc.apply(CpsMethodProc.java:59)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:289)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:188)
at kawa.Shell.run(Shell.java:232)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at kawa.Shell.run(Shell.java:154)
at kawa.repl.main(repl.java:650)
#|kawa:5|#
OTOH, if I wrap these expressions in a begin form, everything works fine.
Am I missing something?
Dominique Boucher
Nü Écho Inc
www.nuecho.com