This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: importing java packages
- From: Chris Dean <ctdean at sokitomi dot com>
- To: Steve Yegge <steve dot yegge at gmail dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Thu, 17 Mar 2005 10:35:56 -0800
- Subject: Re: importing java packages
- References: <d494cb8f050316212611846b5b@mail.gmail.com>
> Feature request for your consideration: import-java-package
>
> (import-java-package <java.awt>)
> (import-java-package <javax.swing>)
I'm in the camp of using define-namespace, just because it seems more
Scheme-ish to say:
(root (JFrame:getContentPane f))
instead of
> (root :: <Container> (invoke f 'getContentPane)))
YMMV.
How about this alternate feature:
(define-package-namespaces <java.awt>)
which would create (define-namespace JFrame <java.awt.JFrame>) etc.
What I really would like is if Kawa provided me the tools so I could
write this feature in Scheme myself with access to the compiler source
code.
Regards,
Chris Dean