Names and scope in D

Dibyendu Majumdar mobile at majumdar.org.uk
Sat Nov 28 15:16:11 UTC 2020


On Saturday, 14 November 2020 at 17:06:49 UTC, Dibyendu Majumdar 
wrote:

>
> I couldn't find the rules that D uses to decide whether a name 
> conflicts or not. If I missed something please can someone 
> point me to it?

module scopes;

int scopes;

This is accepted by the compiler which surprised me.
Is this intentional?





More information about the Digitalmars-d mailing list