Re: a few questions

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu