Comment #2 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 But i is a Byte, and the valid range for a byte is 0 to 255. So it cannot contain 256.