Identifier resolution, the great implementation defined mess.
Peter Alexander via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 21 13:47:28 PDT 2014
On Sunday, 21 September 2014 at 20:05:57 UTC, Walter Bright wrote:
> I don't know what mental model people have for how lookups
> work, but the above algorithm is how it actually works.
My mental model for local imports is "it's the same as module
level imports, except the symbols are only available in this
scope". I wouldn't expect a module symbol to shadow a local
symbol.
More information about the Digitalmars-d
mailing list