Local imports hide local symbols

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 23 14:14:59 PDT 2014


On Tuesday, 23 September 2014 at 18:52:13 UTC, H. S. Teoh via
Digitalmars-d wrote:
> 1) Change lookup rules so that symbols pulled in by local 
> import are
> found last. Walter has stated that he disagrees with this 
> approach
> because it complicates symbol lookup rules.
>

That is dead simple compared to alias this, opDispatch or with
statement. That is a non argument.

This solution is simple (ie look local symbols, then look imports
is easy to understand) and would prevent hijacking and introduce
much less complications than alternatives.


More information about the Digitalmars-d mailing list