3 ms·
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.
by JoeAltmaier 14y ago
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.