Quick start manual

Syntactic elements
4-3
Fundamental syntactic elements
Qualified identifiers
When you use an identifier that has been declared in more than one place, it is
sometimes necessary to qualify the identifier. The syntax for a qualified identifier is
identifier
1
.identifier
2
where identifier
1
qualifies identifier
2
. For example, if two units each declare a variable
called CurrentValue, you can specify that you want to access the CurrentValue in Unit2
by writing
Unit2.CurrentValue
Qualifiers can be iterated. For example,
Form1.Button1.Click
calls the Click method in Button1 of Form1.
If you don’t qualify an identifier, its interpretation is determined by the rules of scope
described in “Blocks and scope” on page 4-29.
Reserved words
The following reserved words cannot be redefined or used as identifiers.
In addition to the words in Table 4.2, private, protected, public, published, and
automated act as reserved words within object type declarations, but are otherwise
treated as directives. The words at and on also have special meanings, and should be
treated as reserved words.
Table 4.2 Reserved words
anddowntoinorstring
array else inherited out then
as end initialization packed threadvar
asm except inline procedure to
begin exports interface program try
case file is property type
class finalization label raise unit
const finally library record until
constructor for mod repeat uses
destructor function nil resourcestring var
dispinterface goto not set while
div if object shl with
do implementation of shr xor