Wish: Variable Not Used Warning
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Sun Jul 27 06:58:15 PDT 2008
Walter Bright wrote:
> Robert Fraser wrote:
>> In a final release, unused things are signs of errors. When writing
>> code, unused variables (perhaps they were used in a commented-out
>> section?) are a dime a dozen.
>
> Yes, that's why I find the warning to be a nuisance, not a help.
That's because you think warnings should be errors, which they
shouldn't. (see my other post about "cautions"). Unused variables in
code should only generate "caution" messages, not errors.
--
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list