Why private methods cant be virtual?
Steven Schveighoffer
schveiguy at gmail.com
Mon Sep 21 23:43:30 UTC 2020
On 9/21/20 7:30 PM, H. S. Teoh wrote:
> On Mon, Sep 21, 2020 at 11:17:13PM +0000, claptrap via Digitalmars-d-learn wrote:
>> Seems like a completely pointless restriction to me.
> [...]
>
> It looks like a bug to me. Please file one if there isn't already one:
>
> https://issues.dlang.org/
>
>
> T
>
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.
-Steve
More information about the Digitalmars-d-learn
mailing list