C++ static analysis

Timon Gehr timon.gehr at gmx.ch
Fri May 6 12:55:00 PDT 2011


Timon Gehr wrote:
>> - Bug #4 is probably easy to find, but in D is less common, because you > usually
> use foreach, or for with local index variable (that D doesn't allow you to
> redefine). Once in > a while that kind of code is correct, maybe.
>
> This is already disallowed (deprecated).

Oh, it is not. I thought it was because I always use loop local counter variables.
But again, where to make the cut? More complex nested loops may legitimately want
to access the same variable.


More information about the Digitalmars-d mailing list