[Issue 3819] [module system] Tiding up the imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 24 13:17:02 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3819



--- Comment #6 from BCS <shro8822 at vandals.uidaho.edu> 2010-02-24 13:17:01 PST ---
(In reply to comment #5)
> Maybe I was not clear enough:

No you were clear enough. I just don't think that your proposal is the correct
solution (and I'm not sure that the problem even needs to be solved).

Clearly, there are better and worse solutions to the problem (if dmd aborts for
all code it would reject all bugs) and I think that your solution is slightly
worse than doing nothing. I think that because it will get in the way of the
programmer and I expect that ,in practice, it will not solve the problem
because people will just use "import foo.*;" by default.

> So it's good to
> have a way to list in explicit way what interactions they share.

We have that right now.

> Importing all names randomly from a module as default behaviour leads to a
> mess.

If importing all names from a module imports *random* names, than the problem
is not the import system, but what is in the module. I'll maintain that in a
well designed library, if you need one thing from a module, you will need
many/most of the things in it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list