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: compilation: define-simple-class & static method alias


When not define module as static - all works:

$ cat AliasTest.scm
;(module-static #t)
(module-compile-options warn-undefined-variable: #t)

(provide 'AliasTest)

(define-simple-class TestInnerClass ()
  ((get name :: String) :: String allocation: 'static
   (java.lang.String:format name (Object[]))))

(define-alias strFormat TestInnerClass:get)


$ kawa -C AliasTest.scm
(compiling AliasTest.scm to AliasTest)

$ kawa
#|kawa:1|# (require <AliasTest>)
#|kawa:2|# strFormat
java.lang.String TestInnerClass.get(java.lang.String)
#|kawa:3|# ^Z

$

Well, define-alias is 'action', not is 'declaration'? Or it is not
intended for use in modules?

-- 
WBR, Yaroslav Kavenchuk.


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