Wish: Variable Not Used Warning

Robert Fraser fraserofthenight at gmail.com
Sun Jul 6 13:20:43 PDT 2008


Walter Bright wrote:
> Robert Fraser wrote:
>> The compiler already has full semantic knowledge of the code, and at 
>> least some of the warnings seem like "low-hanging fruit" so why not 
>> make the compiler act as a "mini-lint"?
> 
> Generally for the reasons already mentioned.
> 
> Warnings are properly in the scope of static analysis tools, which have 
> a different purpose than a compiler.

A compiler is not a documentation generator or a header generator, yet 
DMD does both (with some switches). Why not the same with lint-like 
functionality?



More information about the Digitalmars-d mailing list