This is the mail archive of the kawa@sources.redhat.com 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: importing java packages


> 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


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