Why private methods cant be virtual?

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Sep 21 23:52:01 UTC 2020


On Mon, Sep 21, 2020 at 07:43:30PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote:
[...]
> No, it's not a bug. It's intentional.
> 
> private and package functions are final, and we aren't going to change
> that now, even if it makes sense to make them virtual.
[...]

Whoa.  But why??  What's the reasoning behind private being non-virtual?


T

-- 
What doesn't kill me makes me stranger.


More information about the Digitalmars-d-learn mailing list