This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Problems with scoping of simple class definitions?
- From: Chris Dean <ctdean at sokitomi dot com>
- To: <dominique dot boucher at nuecho dot com>
- Cc: <kawa at sources dot redhat dot com>
- Date: Thu, 14 Oct 2004 11:17:20 -0700
- Subject: Re: Problems with scoping of simple class definitions?
- References: <200410141805.i9EI53e16317@almodovar.nuecho.ad>
Seems like a bug to me.
Regards,
Chris Dean
"Dominique Boucher" <dominique.boucher@nuecho.com> writes:
> 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
>