Closed CryptoPascal31 closed 3 weeks ago
We will fix this only because this is a particularly simple fix (reversing element order in our parser), but I do think that it's certainly wrong to rely on object field evaluation order when it comes to side effects. In many other languages (e.g C) this would be undefined behavior.
Issue description
As usual, a simple non-working example is always better than a long speech. :)
Steps to reproduce
Pact 4 has the expected behavior:
But Pact 5.0 (recent commit c948d933b2c0ddff15c8809ab69e32f91f1cb20e) gives a different result: