I am pretty sure that FPC 1.0.10 would give a runtime error when attempting to read past the end of file.
E.g.
program ReadPastEOF;
var
i: Integer;
begin
readln(i);
writeln(i);
readln(i);
writeln(i);
end.when offered a file with just one line containing one integer, would give a runtime error. This is the behavior I would in fact expect.
At some point in the 1.9 branch, this changed (and now it bites me). Now it silently assigns 0 to i on the second read. Even with -Ci as option or {$I+}.
Can anyone comment on this?
Should I submit a bug report?
Tom
