Sign in Join
Wiki copytemporary

sRangechecks/de

Zurück zu den lokalen Compilerdirektiven.\

$RANGECHECKS

Die Compilerdirektiven $RANGECHECKS und $R prüfen, wenn sie aktiv sind, ob bei Arrays, Aufzählungen (Enummerationen) usw. der Index ausserhalb des spezifizierten Bereichs liegt.
Die Compilerdirektive $R kennt zwei Schalter {$R+} und {$R-}.
Die Compilerdirektive $RANGECHECKS kennt zwei Schalter ON und OFF.
Die Standardeinstellung ist {$RANGECHECKS OFF} bzw. {$R-}.
Die Standardeinstellung führt im Fehlerfall zu einem Fehlverhalten des Programms. Eine Fehlermeldung wird in diesem Fall nicht ausgegeben.
Sind die Compilerdirektiven {$RANGECHECKS ON} bzw. {$R+} und liegt der Index ausserhalb des gültigen Bereichs, dann kommt es zur Fehlermeldung und das Programm bricht mit einem Fehlercode 201 ab.\

Hinweis:
Die Standardfunktionen val und read werden mit der Aktivierung der Compilerdirektive {R+} ebenfalls auf Indexüberlauf geprüft.\

--Olaf 08:19, 22 January 2013 (UTC)


From the Free Pascal wiki, page "sRangechecks/de", as it stood on 2014-05-16 after a change by Swen, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 2 people, 2013–2014

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
OlafCreated page
Olaf (minor)
Olaf (minor)
Swen (minor)
Olaf (minor)
Olaf (minor)
Swen (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.