Names and scope in D

Adam D. Ruppe destructionator at
Sat Nov 28 15:24:03 UTC 2020

On Saturday, 28 November 2020 at 15:16:11 UTC, Dibyendu Majumdar 
> Is this intentional?


The general rule of thumb is if you can disambiguate the name, D 
allows it. Function params have no disambiguation so you can't 
shadow them. But module-level things can always specify the full 
name so it is fine there.

More information about the Digitalmars-d mailing list