Expression evaluation order

David Nadlinger code at klickverbot.at
Thu Jun 13 17:02:23 PDT 2013


On Thursday, 13 June 2013 at 23:25:42 UTC, Jonathan M Davis wrote:
> Walter has expressed a desire in the past to make it so that D 
> requires that
> the evaluation order of arguments be left-to-right in order to 
> avoid bugs, and
> while these aren't exactly function arguments, …

Actually, behind the scenes all three are arguments to *one* 
function call: the druntime array op implementation.

Anyway, my question was mainly about the assignment operator, 
which is obviously not expected to behave lexically left-to-right 
by that test case.

David


More information about the Digitalmars-d mailing list