Evaluation order of index expressions

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Mon May 25 12:17:48 PDT 2015


On 05/25/2015 09:14 PM, Iain Buclaw via Digitalmars-d wrote:
>
>     So what about my previous example?
>
>     int b = 0;
>     ((++b *= 5) *= 2) += ++b * (b -= 6);
>
>     DMD 2.067.1: 60, latest LDC: 65, GDC: ?
>
>
> If the litmus test is "What does GDC do?", then LDC is doing it the
> correct way. :-)

Even if it isn't. ;)


More information about the Digitalmars-d mailing list