On Friday, 27 November 2026 at 19:51:57 UTC, Kapendev wrote:
On Friday, 27 November 2026 at 16:34:07 UTC, DLearner wrote:
It's not an error, but should it not generate a warning?

No idea what linters exist for D, but they can do a better job than a compiler for things like this. Scope the warnings, change how strict they need to be, ...

D-Scanner can be used to check for unused variables:
<https://github.com/dlang-community/D-Scanner#implemented-checks>
  • Compiler doesn't... DLearner via Digitalmars-d-learn
    • Re: Compile... jmh530 via Digitalmars-d-learn
    • Re: Compile... Kapendev via Digitalmars-d-learn
      • Re: Com... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Com... Mindy Batek (0xEAB) via Digitalmars-d-learn
      • Re: Com... Forum User via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... Kapendev via Digitalmars-d-learn
        • Re:... Kapendev via Digitalmars-d-learn

Reply via email to