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: Problems with scoping of simple class definitions?


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
>  


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