Re:The impoliteness of overriding methods
by JoeAltmaier on Wednesday December 19, 2012 @04:14PM
(#4944876)
A simpler mechanism is a keyword to declare a derived function as recursive, either head or tail. They would be similiar in behavior to ctor and dtor methods e.g. in C++.
The idea is, to extend the existing execute-base-first behavior of C++ constructors, and execute-derived-first behavior of destructors, in a way that can't be overridden.
Less utility, but simpler to explain and already implemented, at least in some languages.
Less utility, but simpler to explain and already implemented, at least in some languages.