Function Call in Constraints

In reply to Etrx91:

The generally accepted behavior for a side-effect in software is modifying something outside the scope of the function, Accessing something outside is not a side effect. But since as you have discovered that only the inputs to the function are looked at for ordering, this is poor programming in any case.