Symbol lookup rules and imports
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 4 07:19:34 PST 2014
On Tuesday, 2 December 2014 at 22:02:23 UTC, H. S. Teoh via
Digitalmars-d wrote:
> However, there are major issues with scoped imports currently,
> that make this otherwise ideal solution less-than-ideal, which
> stem from
> the way 'import' is implemented in D. When the compiler
> encounters an
> 'import' statement, what it essentially does is to parse the
> symbols in
> the target module, and add them to the symbol table for the
> current
> scope.
This is probably single thing I hate most about D module system.
Especially the fact that it is default behaviour with plain
"import". I wish all symbols required to be force-qualified with
a module by default :(
More information about the Digitalmars-d
mailing list