On Monday, 24 February 2014 at 08:41:06 UTC, Steve Teale wrote:

extend void foo() // Declared in base class as cumulative void foo()
{
   super.foo();  // Compiler does this for you
// similar to changing a light bulb ;=)

   // the extra stuff
}

When I've had a need for base classes to call super class functions, I certainly wanted a way to enforce it. I just don't know if it would just lead to other OOP design problems.

Reply via email to