[Gambas-user] strange problem with NOT

Rob sourceforge-raindog2 at ...94...
Mon Mar 21 21:29:29 CET 2005


On Monday 21 March 2005 15:10, Jean-Francois Perreault wrote:
> IF (b <> 0) AND (c > d) THEN
> then both expression are evaluated before the AND , causing a
> performance penalty

Are you sure it has to be that way?  I'm pretty sure Perl's short 
circuiting, when confronted with

if (($b != 0) && ($c > $d)) {

would evaluate "$b != 0" and then stop if it were false.

Rob






More information about the User mailing list