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?
Yes.
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
evaluation principle)
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal