I have this function:

function Compare(v1, v2: Integer): Integer;

And called like this:

Result := Compare(stack.Pop, stack.Pop);

The behavior is that the second Pop is evaluated first, thus reversed the
meaning of the function.

Is it true that all parameter evaluation goes from right to left?

Thanks!
Xiangrong
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to