Create alias of same name in inner scope, bug or feature?

Tejas notrealemail at gmail.com
Sat Aug 14 11:39:54 UTC 2021


On Saturday, 14 August 2021 at 08:23:20 UTC, user1234 wrote:
> On Saturday, 14 August 2021 at 04:09:34 UTC, Tejas wrote:
>> [...]
>> Oh right, the ```.``` operator will reference variable in the 
>> _module_ scope, not just the _immediate outer scope_,
>
> you can use the module name to disambiguate as well. To extend 
> Mike answer, the general rule is that if you can distinguish 
> two names there's no shadowing.

Understood


More information about the Digitalmars-d-learn mailing list