On 2019-07-30 08:23, Ondrej Pokorny wrote:

can somebody comment on the Remark from https://www.freepascal.org/docs-html/ref/refch12.html ? _Remark: The order in which expressions of the same precedence are evaluated is not guaranteed to be left-to-right._

Is this valid for boolean expressions, too?

Only if short circuit boolean evaluation is off.

(Well it is no surprise because https://www.freepascal.org/docs-html/ref/refch12.html states that "_This behaviour is distinctly different from Delphi or Turbo Pascal._")

Delphi evaluates e.g. all parameters to subroutine calls from left to right, which FPC does not guarantee.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to