[fpc-pascal] Limits loop for

EC-RED luis3000 at ec-red.com
Tue May 12 23:22:58 CEST 2009


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 for loop ?

Thanks.



More information about the fpc-pascal mailing list