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]

define-simple-class - overloaded methods error


$ cat SimpleClassTest.scm
(module-static 'init-run)

(define-simple-class SimpleClassTest ()
  ((msgTxt code :: int text :: String) :: String allocation: 'static
   (format #f "~A: ~A\n" text code))
  ((msgTxt code :: int) :: String allocation: 'static
   (msgTxt code "Code")))

$ kawa -C SimpleClassTest.scm
(compiling SimpleClassTest.scm to SimpleClassTest)
SimpleClassTest.scm:7:4: call to 'msgTxt' has too many arguments (2; must be 1)

-- 
WBR, Yaroslav Kavenchuk.


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