This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Non-static classes
- From: Margus Freudenthal <margus at cyber dot ee>
- To: kawa at sources dot redhat dot com
- Date: Tue, 02 Jan 2007 11:13:42 +0200
- Subject: Non-static classes
Hello and happy new year.
Kawa allows defining non-static classes (using define-simple-class
without module-static). These classes take module instance as their
constructor argument and can access non-static fields of the module.
However, there seems to be no way to use these classes from kawa. If I
just do (make SomeClass), I get runtime error:
java.lang.NoSuchMethodError: SomeClass: method <init>()V not found
If I put module instance in a variable (using Java code) and do (make
SomeClass module-instance), I get compile-time error:
no possibly applicable method '<init>' in SomeClass
Are the non-static classes meant to be called from Scheme?
--
Margus