How to warn of unused imports?

cy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 8 12:48:29 PST 2016


On Monday, 8 February 2016 at 18:57:52 UTC, Basile B. wrote:

> Otherwise, it sounds like a decent enhancement request for DMD. 
> I know other compilers who do this warning.

It definitely does sound like a decent enhancement request. I 
didn't know it wasn't implemented yet, but it should be pretty 
straightforward, since within DMD you can access the AST. 
Alternatively, implementing DIP50 might let you do it outside the 
compiler.

http://wiki.dlang.org/DIP50


More information about the Digitalmars-d-learn mailing list