Prof A Olowofoyeku (The African Chief) wrote:
It seems that "{$R-}" does not work in units to turn off range checking, and that one has to use it in the main program. Is this by design?
No, this "works" for me (says 11). Can you give an example?
{$R-}
unit MyUnit;
interface
var i: 1 .. 10;
procedure p;
implementation
procedure p; begin Inc (i) end;
end.
program MyProg;
uses MyUnit;
begin i := 10; p; WriteLn (i) end.
Frank