Re: a few questions
----- Original Message -----
From: George Walters <gwalters at sc.rr.com>
Subject: a few questions
>
> Can someone explain 'short circuit' to me (or give me an example). I find
no
> reference to it in the manual..
Suppose you have the code:
if a = 1 and foo(bar) = 3 then
do something
Supposing a did not equal 1,
then Euphoria would not bother to look at foo(), so foo() would not be
executed.
Sometimes you might be expecting foo() to do some work besides just
returning
a value to compare, and in this case, that work wouldn't get done.
Hence the warning.
Regards,
Irv
|
Not Categorized, Please Help
|
|