public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Syntax for calling super implementation when overriding a method
@ 2019-04-01 18:59 Duncan Mak
  2019-04-02 13:47 ` Per Bothner
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Mak @ 2019-04-01 18:59 UTC (permalink / raw)
  To: kawa mailing list

Hello Per,

I see that there's syntax (this) for referring to the current instance.

When I'm defining a class hierarchy, and I'd like to override a method in a
subclass, is there a similar syntax, i.e. (super)?

For now, I'm doing this (superclass:method instance ...), but it'd be nice
not having to explicitly name the superclass.


Thanks!

-- 
Duncan.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-02 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01 18:59 Syntax for calling super implementation when overriding a method Duncan Mak
2019-04-02 13:47 ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).