[Issue 10378] Local imports hide local symbols

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 7 12:39:36 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=10378

--- Comment #10 from hsteoh at quickfur.ath.cx ---
@deadalnix: Unfortunately this would require some rather big changes in
dmdfe... currently, imports are implemented by actually inserting symbols from
the imported module into the symbol table of the current scope. So either we
would have to hack the symbol table to mark imported symbols as being imported,
and modify symbol lookup to ignore such symbols the first time round; or, we'd
have to introduce an additional symbol table per lexical scope for holding
imported symbols, alongside the "normal" symbol table.

--


More information about the Digitalmars-d-bugs mailing list