"a[++i] = i" vs "a[i] = ++i"

Dicebot public at dicebot.lv
Fri Dec 20 18:56:56 PST 2013


On Saturday, 21 December 2013 at 02:52:26 UTC, aldanor wrote:
> So.. isn't it exactly the case where a warning is most 
> suitable? :) C/C++ compilers sure get it right in this regard.

No. There is no such thing as "suitable compiler warning".

It should have been an error.


More information about the Digitalmars-d-learn mailing list