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: define-simple-class feature request: calling inherited methods


Per Bothner wrote:



     ((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.


There is also the alternative:

(invoke (this) 'enableEvents mask)

It might be nice to extend this to it works for protected methods

Exactly. Calling PROTECTED methods is what I can't do without `primitive--virtual-method'

Regards,

Vladimir


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