private vs protected in Interfaces

Christian Kamm kamm-incasoftware at
Fri Aug 13 23:14:02 PDT 2010

Andrej Mitrovic wrote:

> TPDL, page 216: "Making an overridable function private in an
> interface..prevents an implementation from calling the super function".
> But the code example above compiles and runs fine.

See .

By the D spec, private implies final. That means unimplemented private 
methods in interfaces have little use. Also 'private override' should be an 

Or spec and compiler should be changed to be in line with TDPL.


More information about the Digitalmars-d mailing list