2.9 Reserved Words
Discussion: Reserved words have special
meaning in the syntax. In addition, certain reserved words are used as
The syntactic category identifier
no longer allows reserved words. We have added the few reserved words
that are legal explicitly to the syntax for attribute_reference
Allowing identifier to include reserved words has been a source of confusion
for some users, and differs from the way they are treated in the C and
Pascal language definitions.
|at|| || ||tagged||
| ||is|| ||use||
|declare|| ||raise|| ||
| || ||requeue||xor||
7 The reserved words appear in lower
in this International Standard, except when used in
of an attribute (see 4.1.4
). Lower case boldface
is also used for a reserved word in a string_literal
used as an operator_symbol
This is merely a convention — programs may be written in whatever
typeface is desired and available.
Incompatibilities With Ada 83
The following words are
not reserved in Ada 83, but are reserved in Ada 95: abstract
Wording Changes from Ada 83
Incompatibilities With Ada 95
The following words are not reserved in Ada 95, but
are reserved in Ada 2005: interface
A special allowance is made for pragma
Interface (see J.12
Uses of these words as identifiers will need to be changed, but we do
not expect them to be common.
Wording Changes from Ada 95
The definition of upper case equivalence has been modified to allow identifiers
using all of the characters of ISO 10646. This change has no effect on
the character sequences that are reserved words, but does make some unusual
sequences of characters illegal.
Incompatibilities With Ada 2005
characters from reserved words in order to be compatible with the latest
Unicode recommendations. This change can only affect programs written
for original Ada 2005, and there is little reason to put other_format
characters into reserved words in the first place, so there should be
very few such programs.
The following word is not reserved in Ada 2005, but is reserved in Ada
. Uses of this word as an identifier will need to be
changed, but we do not expect them to be common.
Incompatibilities With Ada 2012
The following word is not reserved
in Ada 2012, but is reserved in Ada 202x: parallel. Uses of this
word as an identifier will need to be changed, but we do not expect them
to be common.
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe