Identifier resolution, the great implementation defined mess.

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 21 23:09:00 PDT 2014


On 9/21/2014 2:33 PM, Timon Gehr wrote:
> On 09/21/2014 10:08 PM, Walter Bright wrote:
>> Parameters are not in the same scope as local variables.
>
> I know, and you will know that it makes no practical difference since identifier
> shadowing is disallowed (deprecated) within a function.

The difference does become apparent when imports are done.

Also, the parameter scope matters for things like template function constraints.



More information about the Digitalmars-d mailing list