Is the order of function argument evaluation stable?

So I’m just watching https://www.youtube.com/watch?v=69pvUyBsruQ&t=2h15m19s and Simon Carter is referencing a difference between C compilers / platforms in the order of evaluating function arguments. So this makes me wonder:

Is this order defined in Zig? Is the following guaranteed?

functionCall(evaluatedFirst(), evaluatedSecond());

See also:

1 Like

Thanks. That’s related, but does not seem to address the evaluation order of function arguments.

For instance, C’s comma operator , is defined as a sequence point

I did a quick search - “comma operator” is not referring to the comma used for delimiting function arguments.

The part about the comma operator is talking about C, I think this part is more relevant:

3 Likes