The impoliteness of overriding methods

Benjamin Thaut code at benjamin-thaut.de
Thu Dec 20 02:11:48 PST 2012


Am 20.12.2012 10:42, schrieb Chris Nicholson-Sauls:
> How is this proposal significantly different from the currently working:
>
> interface Base {
>      final void chainMe () {
>          if ( condition ) chainMe();
>          else doChainMe();
>      }
>
>      protected void doChainMe();
> }
>
>
> -- Chris NS

Please read my post again. I explained why. This is not possible because 
you don't have control over the customers sourcecode. You only can 
change one part of the problem. And thus this approach is not possible.

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list