Below you find a list of Delphi's and Lazarus's reserved words and some "dangerous" words that you should avoid as identifiers in your programs.
Reserved words cannot be redefined or used as identifiers, such
function, if, procedure,... In addition to these, other words (such as
at, on,...) act like reserved words.
const Function = 1; // FUNCTION is a reserved word! var Begin: integer; // BEGIN is a reserved word!
Also directives (such as absolute, default,...) have special meanings in the Delphi language. Although it isn't strictly forbidden to use them for identifiers, in a lot of cases this gives errors. Therefore we included them also in our list.
Finally we included some words that are not really forbidden, but that
can lead to very difficult
to debug errors. We advise you to also avoid them as identifiers in your
words are marked with a star (*) such as: application, integer,
© Copyright 1999-2016