Cumulative

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Mon Feb 24 21:38:15 PST 2014


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.


More information about the Digitalmars-d mailing list