Order of evaluation - aka hidden undefined behaviours.

Walter Bright newshound2 at digitalmars.com
Thu Sep 27 03:38:09 PDT 2012


On 9/26/2012 5:04 AM, Timon Gehr wrote:
> Why should the calling convention have an impact on code
> semantics?

Maximizing performance.

> The code reads LTR, therefore evaluation should consistently be LTR.

The best order is the one that generates the fewest temporaries, and that's the 
order that should be defined for D.


More information about the Digitalmars-d mailing list