private/package methods cannot be virtual

Henning Pohl henning at still-hidden.de
Mon May 6 05:19:12 PDT 2013


Documentation:
Member functions which are private or package are never virtual, 
and hence cannot be overridden.

I was about to write a bug report about this, because in my code 
there are tons of overridden methods which actually should be 
private/package. Can anyone tell me why this decision has been 
made? To inline them?

Do I really need to write interfaces to be able to override these 
methods?


More information about the Digitalmars-d mailing list