Unused import tool

Walter Bright newshound2 at digitalmars.com
Sun Aug 20 16:17:34 UTC 2023


On 8/18/2023 10:11 AM, Richard (Rikki) Andrew Cattermole wrote:
> I quite often do something like:
> 
> ```d
> version(none) {
>      debug {
>          try {
>              import std.stdio;
>              writeln("...");
>              stdout.flush;
>          } catch (Exception) {
>          }
>      }
> }
> ```

In the dmd source code, there are a lot of commented out printf's. There would 
be a lot of clutter if an import statement had to be added for each of them.



More information about the Digitalmars-d mailing list