How about Go's... error on unused imports?

Walter Bright newshound1 at digitalmars.com
Fri Nov 13 18:17:38 PST 2009


bearophile wrote:
> Clay Smith:
> 
>> I would like my all.d files to not give errors :o<
> 
> "all.d" files are a hack used to patch one of the minor holes of the
> current D module system. The right way to do that is with a syntax
> like (that must not import the 'foo' name too in the current
> namespace, only the names inside "std.foo"):
> 
> import std.foo: *;

Sorry, I think that * approach is far worse as you never can be sure 
what it is picking up.



More information about the Digitalmars-d mailing list