Warn about do nothing expressions?

Timon Gehr timon.gehr at gmx.ch
Fri Mar 28 15:28:21 PDT 2014


On 03/28/2014 07:04 PM, Frustrated wrote:
>
> I imagine what is going on is that D is creating a temp variable,
> assigning it to the local variable, then incrementing the temp
> variable(since++ increments "after" the assignment).

int tmp = i;
++i;
i = tmp;


More information about the Digitalmars-d mailing list