22 Feb
2005
22 Feb
'05
5:01 p.m.
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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8