FOR loops with Integer variables
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
TRY THIS:
var
i: Integer;
begin
for i := 0 to 90000000000000000 do
begin
writeln(inttostr(i));
end;
end.
There is no error or something like this! The system goes in the for loop onetime. If something like this happens, the system shouldn't compile. Cause "90000000000000000" is not a valid integer.
Additional information:
Reporter: Marc Geldon
EMail: marc dot geldon at proitsystems dot de
Mantis conversion info:
- Mantis ID: 5609
- OS: Win32
- Version: 1.9.6
- Fixed in version: 1.9.7