Expression evaluation order

Timon Gehr timon.gehr at gmx.ch
Sat Jun 15 10:49:37 PDT 2013


On 06/15/2013 07:44 PM, Timon Gehr wrote:
> ...
>>
>> It seems natural to me that the stuff on the associated side would be
>> evaluated
>> before the stuff on the other, but that doesn't mean that it's the
>> best way to
>> go. It's just what I would have expected. So, if there's a good reason
>> to do
>> it differently, then I don't necessarily have a problem with that.
>>
>> - Jonathan M Davis
>>
>
> Well, I can't think of a _good_ reason now. :)
> ...

Correction: The conditional operator is right-associative, but 
evaluation necessarily proceeds LTR.



More information about the Digitalmars-d mailing list