Non-static classes
Margus Freudenthal
margus@cyber.ee
Wed Jan 3 09:30:00 GMT 2007
Per Bothner wrote:
>
> Could you try to compe up with a simple testcase, including
> specifying exactly what you did, and which version of Kawa
> you use? (Please try the SVN version or the 1.8.91 version.)
Apparently it depends on the order of class definition and class usage.
This code snippet fails:
(define ohoo 10)
(define (test-someclass)
(let
((instance :: SomeClass (make SomeClass)))
(instance:my-method)))
(define-simple-class SomeClass ()
((my-method) (display ohoo) (newline)))
However, if I rearrange the procedure and class declaration, everything
works.
BTW, I'm using SVN version.
--
Margus
More information about the Kawa
mailing list