Hi,
I'm just playing around with GPC, so I can't say much about GPC yet, but...
>I know for having read it somewhere that, as does gcc, GPC stops
>evaluating as soon as it knows what is the result. For example,
>evaluating for A and B, with A set to 0, it does not evaluate B for it
>knows it does not worth doing it.
****snip****
>One may object that it does not change anything but efficiency. I have
>conversely some code that will work if only the first part is evaluated
>but will bug if the second is (that is quite curious. Don't worry. It
>works with GPC, will it too with borland?)
Delphi supports shortcircuit-evaluation, too. And I think so does BP... lets
have a look... yes, BP supports it, too. Shortcircuit evaluation is default in
both, Delphi (Object Pascal) and Borland Pacal. The compiler directive $B or
$BOOLEVAL can be used to switch it on or off.
Andreas