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.