Not much of a topic title, I know, but it's a little too weird to describe.
( Don't run this unless you've saved your work as it will crash the IDE )
or
Yeah, so it just keeps going.. round and round..
Tested it in PureBasic and IBasic, and neither of those seems to have any problem doing it. Tested in B3D ( with an Int, obviously ) and it takes bloody ages to get up that high, but I left it a pretty long time, so it looks as though B3D had this problem too.
I can only assume that Blitz is checking to see if the number is higher the next time you go around when it should actually be checking if the number is equal before going around again. Or something like that.
I've just wasted an hour hunting down a mysterious bug which was hanging my program, and this appears to be it. :(
( Don't run this unless you've saved your work as it will crash the IDE )
For Local B:Byte=0 to 255 Print B Next
or
For Local S:Short=0 to 65535 Print S Next
Yeah, so it just keeps going.. round and round..
Tested it in PureBasic and IBasic, and neither of those seems to have any problem doing it. Tested in B3D ( with an Int, obviously ) and it takes bloody ages to get up that high, but I left it a pretty long time, so it looks as though B3D had this problem too.
I can only assume that Blitz is checking to see if the number is higher the next time you go around when it should actually be checking if the number is equal before going around again. Or something like that.
I've just wasted an hour hunting down a mysterious bug which was hanging my program, and this appears to be it. :(