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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to