Names and scope in D

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


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

Yes.

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