On Thu, 02 Aug 2007 16:00:17 -0800, "Joshua J. Kugler"
<joshua@eeinternet.com> declaimed the following in comp.lang.python:
>
> "This is standard behavior in every real programming language."
>
> There, that should start a flame war. :)
>
Look at Ada... Which has such constructs as
if x /= 0 and then y / x < z then
...
end if
Ada also has "or else" construct. These must be used to enforce
evaluation of the LHS first, and skip evaluation of the RHS based upon
the result. With just "and" or "or", the compiler is free to reorder the
subexpressions for optimization.
--
Wulfraed Dennis Lee Bieber KD6MOG
wlfraed@ix.netcom.com wulfraed@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: web-asst@bestiaria.com)
HTTP://www.bestiaria.com/