[Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short.

gambas at ...2524... gambas at ...2524...
Wed Aug 31 23:50:42 CEST 2011


Comment #3 on issue 94 by emil.len... at ...626...: A For-statement can store  
an Integer in a Byte/Short.
http://code.google.com/p/gambas/issues/detail?id=94

When I think about it, if one sees the loop as for(unsigned char i = 1;  
i<=255; i++){ }, the loop never terminates. But if the loop in Gambas  
should be like "count from 1 to 255", will it terminate or not?

However, that "Print i" prints 256 is still wrong.





More information about the User mailing list