why arithmetic for bytes different than for ints?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 2 13:51:57 PDT 2014


On Fri, 02 May 2014 16:32:54 -0400, Vlad Levenfeld <vlevenfeld at gmail.com>  
wrote:

> Dunno why I didn't try it earlier, but splitting it across lines like
>
> y += 1;
> y %= 2;
> assert (y == 1);
>
> works. So, bug, then?

Yes.

-Steve


More information about the Digitalmars-d-learn mailing list