Order of evaluation of a += a++;

Temtaime via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 30 13:31:09 PDT 2015

So in SDC there's no difference between a += a and a += a++ ? 
Damn SDC!

I think DMD does it right. This is commented behavior. And nobody 
will change that: as there are many cries in bugzilla for example 
for phobos fixes « no, we cannot change it, it will break 
existing code ! », so like this nobody will change evaluation 

More information about the Digitalmars-d mailing list