> (my teacher said never try to divide something by 0). > > And I do not understand why/what/where.... that condition is/could be > good for ... 1/0 !?
Dividing by zero is guaranteed error. That is exactly reason why I used it to test if Gambas has short-circuits or not. This is for test purpose only, not for real useful code. > but > If 1 = 1 And 1 <> 2 Then Print "test" > and > If 1 = 1 And If 1 <> 2 Then Print "test" This doesn't test for short-circuits, because both of them will print "test". No indication. My code; If 1 = 2 And If 1 / 0 Then Print "test" does not create error IF language is short-circuit capable, because execute of statement will stop at 1 = 2. Jussi ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user