This is just a reminder, since I have had to clean up a few of these 
recently. The following code is bad:

 DIM array(n)
 IF index >= 0 AND index <= n AND array(n) = somevalue THEN ...

In a language that has short-circuit evaluation of AND operators, the 
above code would be okay, but in freebasic it is not, because array(n) 
will be read even if n is out of range.

---
James Paige
_______________________________________________
ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to