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

Leandro Lucarella llucax at gmail.com
Fri Nov 13 20:39:47 PST 2009


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;!

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Yo soy Peperino, mártir latino, venid al asado pero traed el vino.
	-- Peperino Pómoro



More information about the Digitalmars-d mailing list