Flat module import namespace causing collisions

James Miller james at aatch.net
Thu Feb 16 05:25:29 PST 2012


I'm not sure if I'm reading this right... You aren't very clear...

I think its just because putting a single `module` statement in a file
is good practice. Its a single line and makes you think about your
layout and structure.

Also, there is no global namespace in D, so it must create a module
level namespace for your file if you don't specify one. No matter what
scheme you use, it will upset somebody, so they use whatever they
currently use, and any conflicts are solved by manually setting the
module name.

What seems like a bad idea to you could be a great idea to someone
else, and what seems like a good solution to you will probably upset
somebody else. There is a way to deal with this "problem", and its not
even difficult to do, you seem to be a man in search of a problem.

--
James Miller


More information about the Digitalmars-d mailing list