"a[++i] = i" vs "a[i] = ++i"
aldanor
i.s.smirnov at gmail.com
Fri Dec 20 18:52:25 PST 2013
On Saturday, 21 December 2013 at 01:00:48 UTC, bearophile wrote:
> aldanor:
>
>> it would be nice if the compiler (at least) fired a warning
>> about this kind of things,
>
> For reasons D doesn't like warnings, they are kept at a
> minimum. D prefers errors :-)
>
> Bye,
> bearophile
So.. isn't it exactly the case where a warning is most suitable?
:) C/C++ compilers sure get it right in this regard.
More information about the Digitalmars-d-learn
mailing list