Identifier resolution, the great implementation defined mess.

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 22 00:05:09 PDT 2014


On 9/21/2014 11:44 PM, Marco Leise wrote:
> But quite understandable that people expect them to be in the
> same scope, seeing as there is only one set of {}.

{ } introduce a new nested scope, they do not extend an existing one.


> Adding some
> shadowing warnings should deal with that, so that the earlier
> example with `text` being hijacked somehow errors out.

Are how the current lookup rules work (for better or worse) clear to you or are 
they still mysterious?


More information about the Digitalmars-d mailing list