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

Walter Bright newshound1 at digitalmars.com
Fri Nov 13 20:56:27 PST 2009


Leandro Lucarella wrote:
> Walter Bright, el 13 de noviembre a las 18:17 me escribiste:
>> 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.
> 
> !? import std.foo: *; is the current behavior for import std.foo;!

I thought you were asking for all .d files in the directory foo?



More information about the Digitalmars-d mailing list