Re:The impoliteness of overriding methods
by dougk16 on Wednesday December 19, 2012 @05:46PM
(#4945243)
Another way to solve this problem in theory is to have Java-like annotations that force subclasses to call super whether they like it or not, and even where they must call super, for example @OverridesMustCallMe(location="top"). The super call could be automatically added at compile time if you don't provide it, or it could result in a compiler error if you don't provide it (probably the latter). Never seen a language like this though, so it may be a bad idea for some reason.
[ Parent
| on HN ]
There are no comments on this comment yet.