Adding a new design constraint to D

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sun Jun 19 07:41:37 UTC 2022


On Sunday, 19 June 2022 at 07:07:07 UTC, Max Samukha wrote:
> The special shadowing rules do not seem to introduce any 
> logical inconsistencies.

It is inconsistent with scoping semantics: classes within 
classes, structs within structs, and you are allowed to shadow 
globals. Yet shadowing when subclassing is allowed?

It is just a personal style guideline that is forced on everybody 
for no particular reason, it is not a common mistake to make if 
you know what you are doing.





More information about the Digitalmars-d mailing list