TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: HANS LUNSING
from: FRANK COX
date: 1996-12-21 09:54:00
subject: Huge arrays

 > Monday, 9 December 1996 20:44:15, Hans Lunsing wrote to Frank 
 > Cox Subject: Huge arrays
 FC>>> for x%=-32768 to 32767
 FC>>> next
 HL>> How do you mean, in both cases? The range of an integer 
 HL>> variable is -32768 to 32767 inclusive, so in the last 
 HL>> example x% is in the right range.
Odd, the original message that you wrote here seems to have been lost.  All I 
have here is the part quoted by Marcel Veldhuizen.
Could you maybe send it out again?
Anyway, the problem here is that on its last interation, x% will be equal to 
32768.  On the second-last iteration it will be 32767, and it's not time to 
leave the loop yet.  On the last iteration, it will be 32768 and time to 
leave the loop.  But 32768 is outside of the range of an integer variable.
--- Msgedsq 2.2e
---------------
* Origin: THE BIG ELECTRIC CAT Melville Sask *SDS* *PDN* (1:140/53)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.