This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Non-static classes
- From: Margus Freudenthal <margus at cyber dot ee>
- To: Per Bothner <per at bothner dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 03 Jan 2007 11:30:07 +0200
- Subject: Re: Non-static classes
- References: <459A2246.9060003@cyber.ee> <459A8759.2030800@bothner.com>
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