Flat module import namespace causing collisions

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Feb 16 06:23:06 PST 2012


Import doesn't behave like include at all, and it doesn't cater to C++
programmers.

See:
http://www.d-programming-language.org/module.html
Alternatively, TDPL.

Always use module names. If something conflicts, use selective
imports, or aliases, or static imports if you really want to avoid
clashes. You can even use function-local imports.


More information about the Digitalmars-d mailing list