This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
define-simple-class feature request: calling inherited methods
- From: Vladimir Tsichevski <wowa at jet dot msk dot su>
- To: kawa at sources dot redhat dot com
- Date: Thu, 20 Mar 2003 18:26:56 +0300
- Subject: define-simple-class feature request: calling inherited methods
Hi,
in classes defined with define-simple-class etc. it would be useful to
add to the class scope public and protected methods of classes and
interfaces the newly creates class inherits from.
For example, in class inherited from java.awt.Component, in which
enableMask() is protected, it would be possible to write just:
(enableEvents mask)
instead of:
((primitive-virtual-method
<java.awt.Component>
'enableEvents <void>
(<long>))
(this) mask))))
As this example shows, not only will this make code cleaner, but also
allow access to protected members, which is otherwise requires clumsy
and dangerous constructs using primitive-virtual-method.
Regards,
Vladimir