<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 30.07.2019 08:23, Ondrej Pokorny
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:956a8901-690a-28e0-6f9d-9ba0f372089b@kluug.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<i>Remark: The order in which expressions of the same precedence
are evaluated is not guaranteed to be left-to-right.</i><br>
<p> Is this valid for boolean expressions, too? I use the
following construct with {$BOOLEVAL OFF}:<br>
Result := Assigned(MyObject) and (MyObject.Value>5);<br>
</p>
</blockquote>
A moment of relief. The FPC compiler itself depends on the
left-to-right evaluation. E.g. compiler/aoptbase.pas, line 284:
<p> while assigned(p1) and assigned(p2) and
GetNextInstruction(p1,p1) and (p1<>p2) do<br>
</p>
<p><br>
</p>
<p>So is the documentation wrong or are the compiler (and also my
own) sources flawed?<br>
</p>
<p>Best<br>
Ondrej</p>
</body>
</html>