[Gambas-user] Issue 129 in gambas: For-loop does not work on large ranges

gambas at ...2524... gambas at ...2524...
Wed Oct 19 13:46:05 CEST 2011


Comment #1 on issue 129 by emil.len... at ...626...: For-loop does not work on  
large ranges
http://code.google.com/p/gambas/issues/detail?id=129

A working alternative to the current MUST_CONTINUE-macros would be the  
following pseudo code:

if (val == end) continue loop;
else {
     int sign1 = val < to;
     int sign2 = (step >> 31) & 1;
     if (sign1 != sign2) continue loop;
     else quit loop;
}





More information about the User mailing list