This is the mail archive of the kawa@sourceware.org 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: Non-static classes


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


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