The impoliteness of overriding methods

Jacob Carlborg doob at me.com
Thu Dec 20 00:57:07 PST 2012


On 2012-12-20 08:41, H. S. Teoh wrote:

> The difference is that you can do things like this:
>
> 	class Base {
> 		abstract void chainMe() {
> 			if (condition) {
> 				chainMe();	// recursion
> 			} else {
> 				inner.chainMe();
> 			}
> 		}
> 	}
>
> Which cannot be easily reproduced using .super.

Oh, it's the super class that's calling the subclass?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list