Re: overriding private interface methods

2012-10-23 Thread Jonathan M Davis
On Tuesday, October 23, 2012 11:47:09 Ali Çehreli wrote: > private member functions are not virtual by the design of the language. > You have to make them 'protected', not private. Yes, but according to TDPL, it's different for interfaces. It specifically talks about using private with interface

Re: overriding private interface methods

2012-10-23 Thread Ali Çehreli
On 10/23/2012 11:37 AM, Oleg wrote: Hello. How to override private methods? import std.stdio, std.conv; interface abcInterface { private double private_func(); public final double func() { return private_func(); } } class abcImpl: abcInterface { override private double private_func() { return