Evaluation order of index expressions

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon May 25 17:55:36 PDT 2015


On Tuesday, 26 May 2015 at 00:07:33 UTC, Timon Gehr wrote:
>> I'm fine with RTL for assignment expressions, and LTR 
>> everywhere else.
>> Daniel, if you could work this out at front end level so it 
>> goes the
>> same way for all backends, that would be fantastic. -- Andrei
>>
>
> Why? Strictly left-to-right is the simplest thing.

In case of opAssign kind of thing, LTR is not doable as operator 
overloading, at least not in a backward compatible manner.


More information about the Digitalmars-d mailing list