DMD 0.164: Possible bug in order of evaluation
Walter Bright
newshound at digitalmars.com
Sun Aug 20 11:19:44 PDT 2006
Klaus Oberhofer wrote:
> While porting some C-Code to D I had a possible bug that has to do with
> the order of evaluation of the post increment operator.
> The following C sample
[...]
> testarray_b[i++] = 1U << (16 - i);
[...]
> Could someone confirm this as a bug ?
In the source code, yes. Depending on order of evaluation of side
effects is an error in D as well as an error in C and C++.
More information about the Digitalmars-d-bugs
mailing list