Identifier resolution, the great implementation defined mess.

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


On 9/21/2014 11:09 PM, deadalnix wrote:
> We should simply do a lookup for local symbol, and if that fail, imported symbols.

That's what it does now, i.e. lookup in the current scope, and if that fails, 
look in imports, if that fails, go to the enclosing scope.

> In that case, a should resolve as the parameter, all the time.

Parameters are in an uplevel enclosing scope.


More information about the Digitalmars-d mailing list