Fun surprising things

Timon Gehr timon.gehr at gmx.ch
Wed Oct 31 22:54:50 UTC 2018


On 31.10.18 18:28, Stanislav Blinov wrote:
> 
>> So the inconsistency in the spec ("binary expressions are left to 
>> right", "function arguments are implementation defined order") leaves 
>> a gaping hole. What happens when a binary expression lowers to a 
>> function call?
> 
> You're misreading the spec. The relevant part is the one I quoted. 
> There's no left-to-right evaluation rule here. It's not a binary 
> expression, it's an argument list; in this case - one argument, which is 
> a CatExpression, which is an AssignExpression, the order of evaluation 
> of it's operands is implementation-defined.

I think you are the one who is misreading the spec here.


More information about the Digitalmars-d mailing list