[fpc-pascal] Boolean expression short-circuit
Michael Van Canneyt
michael at freepascal.org
Tue Nov 22 16:23:20 CET 2005
On Tue, 22 Nov 2005, Kornel Kisielewicz wrote:
> Michalis Kamburelis wrote:
>>> Can I make the assumption that boolean expressions are GUARANTEED to be
>>> evaluated left-to-right?
> Thanks, I guess I lost the argument :]. Anyway, I guess it wouldn't hurt to
> clarify that just a little bit in the manual :-/
Boolean expression evaluation is explicitly treated in both
reference manual and programmers reference.
However, I'll add an explicit remark about the consequence this has for
the order of evaluation, namely that the order is guaranteed left-to-right.
(although I think this is a logical consequence of the shortcut boolean
More information about the fpc-pascal