private method in interface
Jonathan M Davis
jmdavisProg at gmx.com
Thu Jun 2 23:55:55 PDT 2011
On 2011-06-02 23:53, Kagamin wrote:
> Jonathan M Davis Wrote:
> > http://d.puremagic.com/issues/show_bug.cgi?id=4542
> > http://d.puremagic.com/issues/show_bug.cgi?id=2051
>
> Nothing prevents compiler from considering class private methods as final
> and allow implement interface private methods (possibly with requirement
> for `override` keyword).
It would be possible but inconsistent. It would also likely be more
complicated to implement than simply making private functions virtual and
overridable. I don't really like the idea of private functions being virtual
by default though, so maybe your suggestion would be a good one.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list