Re: [fpc-pascal] Limits loop for

2009-05-12 Thread Jonas Maebe
On 12 May 2009, at 23:22, EC-RED wrote: When compiling the following program : Var a : longWord; Begin for a:=1 to 4294967294 do Begin Writeln(a); End; End. I get the following error message: "Error : range check error while evaluating constants" and not compiled. How do I make a loop

[fpc-pascal] Limits loop for

2009-05-12 Thread EC-RED
When compiling the following program : Var a : longWord; Begin for a:=1 to 4294967294 do Begin Writeln(a); End; End. I get the following error message: "Error : range check error while evaluating constants" and not compiled. How do I make a loop up to 4294967294? What is the limit of a