Why is D unpopular

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Jun 14 13:19:18 UTC 2022


On Monday, 13 June 2022 at 14:15:15 UTC, Ola Fosheim Grøstad 
wrote:
> On Monday, 13 June 2022 at 13:51:40 UTC, Paul Backus wrote:
>> This is necessary because D allows you to define fields with 
>> the same name in a base class and its derived class;
>
> Hardly necessary, C++ will error on this:

This was wrong. Sorry. I never shadow in real code…

> I still prefer that this is not allowed as shadowing in class 
> hierarchies makes debugging so much more confusing.

This is true. ;-)



More information about the Digitalmars-d mailing list