| 1 |
@Part(01, Root="ada.mss") |
| 2 |
|
| 3 |
@PrefaceSection{} @Comment{Go to odd page.} |
| 4 |
|
| 5 |
@begin{Comment} |
| 6 |
The following stuff is to get the "INTERNATIONAL STANDARD" title between |
| 7 |
two horizontal rules at the top of page 1. (RLB-The following is a hack: |
| 8 |
I probably ought to add a style just for this purpose) |
| 9 |
@end{Comment} |
| 10 |
|
| 11 |
@thickline |
| 12 |
|
| 13 |
@begin{WideAbove} |
| 14 |
@noparanum@leading@tabclear()@tabset(P45) |
| 15 |
@Swiss<@Grow[@B{INTERNATIONAL STANDARD@\ISO/IEC 8652:@Chg{Version=[2],New=[@Chg{Version=[5],New=[202x],Old=[@Chg{Version=[3],New=[2012(E)@Chg{Version=[4],New=[ with Cor 1:2016],Old=[]}],Old=[2007(E), Ed. 3]}]}],Old=[@Chg{Version=[1], New=[1995(E) with COR.1:2001], Old=[1995(E)]}]}}]> |
| 16 |
@end{WideAbove} |
| 17 |
|
| 18 |
@thickline |
| 19 |
|
| 20 |
@begin{Title} |
| 21 |
@noparanum@ @*@comment{Some vertical whitespace} |
| 22 |
|
| 23 |
@noparanum@Swiss{@b{Information technology @Em Programming}}@* |
| 24 |
@noparanum@Swiss{@b{Languages @Em Ada}} |
| 25 |
|
| 26 |
@noparanum@ @*@comment{Some vertical whitespace} |
| 27 |
@end{Title} |
| 28 |
|
| 29 |
@LabeledSectionNoBreak{General} |
| 30 |
@Comment{$Date: 2016/02/12 05:25:37 $} |
| 31 |
|
| 32 |
@Comment{$Source: e:\\cvsroot/ARM/Source/01.mss,v $} |
| 33 |
@Comment{$Revision: 1.89 $} |
| 34 |
|
| 35 |
@begin{Intro} |
| 36 |
@Chgref{Version=[3],Kind=[DeletedNoDelMsg],ARef=[AI05-0299-1]} |
| 37 |
@ChgDeleted{Version=[3],Text=[Ada is a programming language designed to support |
| 38 |
the construction of long-lived, highly reliable software systems. The language |
| 39 |
includes facilities to define packages |
| 40 |
of related types, objects, and operations. |
| 41 |
The packages may be parameterized |
| 42 |
and the types may be extended to support the construction of libraries |
| 43 |
of reusable, adaptable software components. The operations |
| 44 |
may be implemented as subprograms using conventional sequential |
| 45 |
control structures, or as entries that include synchronization |
| 46 |
of concurrent threads of control as part of their invocation. |
| 47 |
The language treats modularity in the physical |
| 48 |
sense as well, with a facility to support separate compilation.]} |
| 49 |
|
| 50 |
@Chgref{Version=[3],Kind=[DeletedNoDelMsg],ARef=[AI05-0269-1],ARef=[AI05-0299-1]} |
| 51 |
@ChgDeleted{Version=[3],Text=[The language includes a complete facility for |
| 52 |
the support of real-time, concurrent programming. |
| 53 |
Errors can be signaled as exceptions and handled explicitly. |
| 54 |
The language also |
| 55 |
covers systems programming; this requires precise control over the |
| 56 |
representation of data and access to system-dependent properties. Finally, |
| 57 |
a predefined environment of standard packages is provided, including |
| 58 |
facilities for, among others, input-output, string manipulation, |
| 59 |
numeric elementary functions, and random |
| 60 |
number generation.]} |
| 61 |
@begin{Discussion} |
| 62 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 63 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 64 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 65 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 66 |
This Annotated Ada Reference Manual (AARM) contains the entire text of |
| 67 |
the @Chg{Version=[3],New=[third edition of the ],Old=[]}Ada Reference |
| 68 |
Manual @Chg{Version=[5],New=[as updated |
| 69 |
for Ada 202x (referred to here as the Ada 202x RM)], |
| 70 |
Old=[@Chg{Version=[4],New=[as updated by Technical Corrigendum 1], |
| 71 |
Old=[]}@Chg{Version=[3],New=[ (the |
| 72 |
Ada 2012 RM],Old=[@Chg{Version=[2],New=[with |
| 73 |
Amendment 1 (the Ada 2005 RM],Old=[(RM95]}]})]}, |
| 74 |
plus certain annotations. |
| 75 |
The annotations give a more in-depth analysis of the language. |
| 76 |
They describe the reason for each nonobvious rule, |
| 77 |
and point out interesting ramifications of the rules |
| 78 |
and interactions among the rules |
| 79 |
(interesting to language lawyers, that is). |
| 80 |
Differences between Ada 83@Chg{Version=[2],New=[, Ada 95, |
| 81 |
@Chg{Version=[3],New=[],Old=[and ]}Ada 2005@Chg{Version=[3],New=[@Chg{Version=[5],New=[, Ada 2012, and Ada 202x],Old=[, and Ada |
| 82 |
2012]}],Old=[]}],Old=[ and Ada 95]} are listed. |
| 83 |
(The text you are reading now is an annotation.) |
| 84 |
|
| 85 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 86 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 87 |
The AARM stresses detailed correctness and uniformity over |
| 88 |
readability and understandability. |
| 89 |
We're not trying to make the language @lquotes@;appear@rquotes@; simple here; |
| 90 |
on the contrary, we're trying to expose hidden complexities, |
| 91 |
so we can more easily detect language bugs. |
| 92 |
The @Chg{Version=[2],New=[Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95]}, on the other hand, is intended to be a more |
| 93 |
readable document for programmers. |
| 94 |
|
| 95 |
@Leading@keepnext@;The annotations in the AARM are as follows: |
| 96 |
@begin{Itemize} |
| 97 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 98 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 99 |
Text that is logically redundant is shown |
| 100 |
@Redundant[in square brackets, like this]. |
| 101 |
Technically, such text could be written as a @NotesName |
| 102 |
in the @Chg{Version=[2],New=[Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM |
| 103 |
(and the Ada 95 @Chg{Version=[3],New=[and 2005 RMs],Old=[RM]} before it)],Old=[RM95]}, |
| 104 |
since it is really a theorem that can |
| 105 |
be proven from the nonredundant rules of the language. |
| 106 |
We use the square brackets instead when it seems to make the |
| 107 |
@Chg{Version=[2],New=[Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95]} more readable. |
| 108 |
|
| 109 |
The rules of the language (and some AARM-only text) are categorized, |
| 110 |
and placed under certain @i{sub-headings} that indicate |
| 111 |
the category. |
| 112 |
For example, the distinction between @ResolutionName@;s |
| 113 |
and @LegalityName@;s is particularly important, |
| 114 |
as explained in @RefSecNum{The Context of Overload Resolution}. |
| 115 |
|
| 116 |
Text under the following sub-headings appears in both documents: |
| 117 |
@begin(Inneritemize) |
| 118 |
The unlabeled text at the beginning of each clause or subclause, |
| 119 |
|
| 120 |
@SyntaxTitle, |
| 121 |
|
| 122 |
@ResolutionTitle, |
| 123 |
|
| 124 |
@LegalityTitle, |
| 125 |
|
| 126 |
@StaticSemTitle, |
| 127 |
|
| 128 |
@LinkTimeTitle, |
| 129 |
|
| 130 |
@RunTimeTitle, |
| 131 |
|
| 132 |
@BoundedTitle, |
| 133 |
|
| 134 |
@ErronTitle, |
| 135 |
|
| 136 |
@ImplReqTitle, |
| 137 |
|
| 138 |
@DocReqTitle, |
| 139 |
|
| 140 |
@MetricsTitle, |
| 141 |
|
| 142 |
@ImplPermTitle, |
| 143 |
|
| 144 |
@ImplAdviceTitle, |
| 145 |
|
| 146 |
@NotesTitle, |
| 147 |
|
| 148 |
@ExamplesTitle. |
| 149 |
@end(Inneritemize) |
| 150 |
|
| 151 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 152 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 153 |
Text under the following sub-headings |
| 154 |
does not appear in the @Chg{Version=[2],New=[Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95]}: |
| 155 |
@begin(Inneritemize) |
| 156 |
@MetaRulesTitle, |
| 157 |
|
| 158 |
@Inconsistent83Title, |
| 159 |
|
| 160 |
@Incompatible83Title, |
| 161 |
|
| 162 |
@Extend83Title, |
| 163 |
|
| 164 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 165 |
@DiffWord83Title@Chg{Version=[2],New=[,],Old=[.]} |
| 166 |
|
| 167 |
@ChgRef{Version=[2],Kind=[Added]} |
| 168 |
@ChgAdded{Version=[2],Text=[@Inconsistent95Title,]} |
| 169 |
|
| 170 |
@ChgRef{Version=[2],Kind=[Added]} |
| 171 |
@ChgAdded{Version=[2],Text=[@Incompatible95Title,]} |
| 172 |
|
| 173 |
@ChgRef{Version=[2],Kind=[Added]} |
| 174 |
@ChgAdded{Version=[2],Text=[@Extend95Title,]} |
| 175 |
|
| 176 |
@ChgRef{Version=[2],Kind=[Added]} |
| 177 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 178 |
@ChgAdded{Version=[2],Text=[@DiffWord95Title@Chg{Version=[3],New=[,],Old=[.]}]} |
| 179 |
|
| 180 |
@ChgRef{Version=[3],Kind=[Added]} |
| 181 |
@ChgAdded{Version=[3],Text=[@Inconsistent2005Title,]} |
| 182 |
|
| 183 |
@ChgRef{Version=[3],Kind=[Added]} |
| 184 |
@ChgAdded{Version=[3],Text=[@Incompatible2005Title,]} |
| 185 |
|
| 186 |
@ChgRef{Version=[3],Kind=[Added]} |
| 187 |
@ChgAdded{Version=[3],Text=[@Extend2005Title,]} |
| 188 |
|
| 189 |
@ChgRef{Version=[3],Kind=[Added]} |
| 190 |
@ChgAdded{Version=[3],Text=[@DiffWord2005Title.]} |
| 191 |
|
| 192 |
@ChgRef{Version=[4],Kind=[Added]} |
| 193 |
@ChgAdded{Version=[4],Text=[@Inconsistent2012Title,]} |
| 194 |
|
| 195 |
@ChgRef{Version=[4],Kind=[Added]} |
| 196 |
@ChgAdded{Version=[4],Text=[@Incompatible2012Title,]} |
| 197 |
|
| 198 |
@ChgRef{Version=[4],Kind=[Added]} |
| 199 |
@ChgAdded{Version=[4],Text=[@Extend2012Title,]} |
| 200 |
|
| 201 |
@ChgRef{Version=[4],Kind=[Added]} |
| 202 |
@ChgAdded{Version=[4],Text=[@DiffWord2012Title.]} |
| 203 |
@end(Inneritemize) |
| 204 |
|
| 205 |
The AARM also includes the following kinds of annotations. |
| 206 |
These do not necessarily annotate the immediately preceding |
| 207 |
rule, although they often do. |
| 208 |
@end{Itemize} |
| 209 |
@end{Discussion} |
| 210 |
@begin{Reason} |
| 211 |
An explanation of why a certain rule is necessary, |
| 212 |
or why it is worded in a certain way. |
| 213 |
@end{Reason} |
| 214 |
@begin{Ramification} |
| 215 |
An obscure ramification of the rules that is of interest |
| 216 |
only to language lawyers. |
| 217 |
(If a ramification of the rules is of interest to programmers, |
| 218 |
then it appears under @NotesTitle.) |
| 219 |
@end{Ramification} |
| 220 |
@begin{TheProof} |
| 221 |
An informal proof explaining how a given |
| 222 |
@NotesName or |
| 223 |
@Redundant[marked-as-redundant] piece of text |
| 224 |
follows from the other rules of the language. |
| 225 |
@end{TheProof} |
| 226 |
@begin{ImplNote} |
| 227 |
A hint about how to implement a feature, or a particular potential |
| 228 |
pitfall that an implementer needs to be aware of. |
| 229 |
|
| 230 |
@b{Change:} Change annotations are not used in this version. Changes from |
| 231 |
previous versions have been removed. Changes in this version are marked with |
| 232 |
versioned paragraph numbers, as explained in the |
| 233 |
@lquotes@;Corrigendum Changes@rquotes@; clause of the |
| 234 |
@lquotes@;Introduction@rquotes@;. |
| 235 |
@end{ImplNote} |
| 236 |
|
| 237 |
@begin{Discussion} |
| 238 |
Other annotations not covered by the above. |
| 239 |
@end{Discussion} |
| 240 |
@begin{Honest} |
| 241 |
A rule that is considered logically necessary to the definition of the |
| 242 |
language, but which is so obscure or pedantic that only a language |
| 243 |
lawyer would care. |
| 244 |
These are the only annotations that could be considered part of the |
| 245 |
language definition. |
| 246 |
@end{Honest} |
| 247 |
@begin{GlossaryMarker} |
| 248 |
The text of a Glossary entry @em this text will also appear |
| 249 |
in @RefSec{Glossary}. |
| 250 |
@end{GlossaryMarker} |
| 251 |
@begin{Discussion} |
| 252 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 253 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 254 |
In general, @Chg{Version=[2],New=[the Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95]} text appears in the normal font, |
| 255 |
whereas AARM-only text appears in a smaller font. |
| 256 |
@NotesName@;s also appear in the smaller font, |
| 257 |
as recommended by ISO/IEC style guidelines. |
| 258 |
Ada examples are also usually printed in a smaller font. |
| 259 |
|
| 260 |
If you have trouble finding things, be sure to use the index. |
| 261 |
@Defn{italics, like this} |
| 262 |
Each defined term appears there, |
| 263 |
and also in @i{italics, like this}. |
| 264 |
Syntactic categories defined in BNF are also indexed. |
| 265 |
|
| 266 |
A definition marked @lquotes@;[distributed]@rquotes@; is the main definition for a |
| 267 |
term whose complete definition is given in pieces distributed |
| 268 |
throughout the document. |
| 269 |
The pieces are marked @lquotes@;[partial]@rquotes@; |
| 270 |
or with a phrase explaining what cases the partial definition applies |
| 271 |
to. |
| 272 |
@end{Discussion} |
| 273 |
@end{Intro} |
| 274 |
|
| 275 |
@LabeledClause{Scope} |
| 276 |
|
| 277 |
|
| 278 |
@begin{Intro} |
| 279 |
@Chgref{Version=[3],Kind=[AddedNormal],ARef=[AI05-0299-1]} |
| 280 |
This International Standard specifies the form and meaning of programs |
| 281 |
written in Ada. |
| 282 |
Its purpose is to promote the portability of Ada programs to a variety |
| 283 |
of @Chg{Version=[3],New=[computing],Old=[data processing]} systems. |
| 284 |
|
| 285 |
@Chgref{Version=[3],Kind=[AddedNormal],ARef=[AI05-0299-1]} |
| 286 |
@ChgAdded{Version=[3],Text=[Ada is a programming language designed to support |
| 287 |
the construction of long-lived, highly reliable software systems. The language |
| 288 |
includes facilities to define packages of related types, objects, and |
| 289 |
operations. The packages may be parameterized and the types may be extended to |
| 290 |
support the construction of libraries of reusable, adaptable software |
| 291 |
components. The operations may be implemented as subprograms using conventional |
| 292 |
sequential control structures, or as entries that include synchronization of |
| 293 |
concurrent threads of control as part of their invocation. Ada supports |
| 294 |
object-oriented programming by providing classes and interfaces, inheritance, |
| 295 |
polymorphism of variables and methods, and generic units. The language treats |
| 296 |
modularity in the physical sense as well, with a facility to support separate |
| 297 |
compilation.]} |
| 298 |
|
| 299 |
@Chgref{Version=[3],Kind=[AddedNormal],ARef=[AI05-0269-1],ARef=[AI05-0299-1]} |
| 300 |
@Chgref{Version=[4],Kind=[Revised],ARef=[AI12-0056-1]} |
| 301 |
@ChgAdded{Version=[3],Text=[The language provides rich support for real-time, concurrent programming, and |
| 302 |
includes facilities for multicore and multiprocessor programming. Errors can be |
| 303 |
signaled as exceptions and handled explicitly. The language also covers systems |
| 304 |
programming; this requires precise control over the representation of data and |
| 305 |
access to system-dependent properties. Finally, a predefined environment of |
| 306 |
standard packages is provided, including facilities for, among others, |
| 307 |
input-output, string manipulation, numeric elementary functions, |
| 308 |
@Chg{Version=[4],New=[],Old=[and ]}random number generation, and definition and |
| 309 |
use of containers.]} |
| 310 |
|
| 311 |
@end{Intro} |
| 312 |
|
| 313 |
@LabeledSubClause{Extent} |
| 314 |
|
| 315 |
@begin{Intro} |
| 316 |
@Leading@keepnext@;This International Standard specifies: |
| 317 |
@begin(Itemize) |
| 318 |
The form of a program written in Ada; |
| 319 |
|
| 320 |
The effect of translating and executing such a program; |
| 321 |
|
| 322 |
The manner in which program units may be combined to form Ada |
| 323 |
programs; |
| 324 |
|
| 325 |
The language-defined library units that a conforming implementation |
| 326 |
is required to supply; |
| 327 |
|
| 328 |
The permissible variations within the standard, and the manner in |
| 329 |
which they are to be documented; |
| 330 |
|
| 331 |
Those violations of the standard that a conforming implementation |
| 332 |
is required to detect, and the effect of attempting to translate or |
| 333 |
execute a program containing such violations; |
| 334 |
|
| 335 |
Those violations of the standard that a conforming implementation |
| 336 |
is not required to detect. |
| 337 |
@end(Itemize) |
| 338 |
|
| 339 |
@begin{WideAbove} |
| 340 |
@Leading@keepnext@;This International Standard does not specify: |
| 341 |
@end{WideAbove} |
| 342 |
@begin(Itemize) |
| 343 |
The means whereby a program written in Ada is transformed into |
| 344 |
object code executable by a processor; |
| 345 |
|
| 346 |
The means whereby translation or execution of programs is invoked |
| 347 |
and the executing units are controlled; |
| 348 |
|
| 349 |
The size or speed of the object code, or the relative execution |
| 350 |
speed of different language constructs; |
| 351 |
|
| 352 |
The form or contents of any listings produced by implementations; |
| 353 |
in particular, the form or contents of error or warning messages; |
| 354 |
|
| 355 |
The effect of unspecified execution. |
| 356 |
|
| 357 |
The size of a program or program unit that will exceed the capacity |
| 358 |
of a particular conforming implementation. |
| 359 |
@end(Itemize) |
| 360 |
@end{Intro} |
| 361 |
|
| 362 |
@LabeledSubClause{Structure} |
| 363 |
|
| 364 |
@begin{Intro} |
| 365 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 366 |
This International Standard contains thirteen @Chg{Version=[3],New=[clauses],Old=[sections]}, |
| 367 |
@Chg{Version=[3],New=[fifteen],Old=[fourteen]} annexes, |
| 368 |
and an index. |
| 369 |
|
| 370 |
@begin{Discussion} |
| 371 |
@Chgref{Version=[3],Kind=[AddedNormal],ARef=[AI05-0299-1]} |
| 372 |
@ChgAdded{Version=[3],Text=[What Ada 83 called a @ldquote@;chapter@rdquote and |
| 373 |
Ada 95 (and Ada 2005) called a @ldquote@;section@rdquote is called a @ldquote@;clause@rdquote |
| 374 |
in this Standard. Similarly, what Ada 83 called a @ldquote@;section@rdquote and |
| 375 |
Ada 95 (and Ada 2005) called a @ldquote@;clause@rdquote is called a @ldquote@;subclause@rdquote |
| 376 |
in this Standard. Confused yet? This terminology is out of our hands; it is |
| 377 |
(and was) forced by ever-changing ISO rules for drafting Standards.]} |
| 378 |
@end{Discussion} |
| 379 |
|
| 380 |
@Leading@Defn{core language} |
| 381 |
The @i{core} of the Ada language consists of: |
| 382 |
@begin{Itemize} |
| 383 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 384 |
@Chg{Version=[3],New=[Clauses],Old=[Sections]} 1 through 13 |
| 385 |
|
| 386 |
@RefSec{Predefined Language Environment} |
| 387 |
|
| 388 |
@RefSec{Interface to Other Languages} |
| 389 |
|
| 390 |
@RefSec{Obsolescent Features} |
| 391 |
@end{Itemize} |
| 392 |
|
| 393 |
@begin{WideAbove} |
| 394 |
@Leading@Defn{Specialized Needs Annexes} |
| 395 |
@Defn2{Term=[Annex],Sec=(Specialized Needs)} |
| 396 |
@Defn{application areas} |
| 397 |
The following @i{Specialized Needs Annexes} |
| 398 |
define features that are needed by certain |
| 399 |
application areas: |
| 400 |
@end{WideAbove} |
| 401 |
@begin{Itemize} |
| 402 |
@RefSec{Systems Programming} |
| 403 |
|
| 404 |
@RefSec{Real-Time Systems} |
| 405 |
|
| 406 |
@RefSec{Distributed Systems} |
| 407 |
|
| 408 |
@RefSec{Information Systems} |
| 409 |
|
| 410 |
@RefSec{Numerics} |
| 411 |
|
| 412 |
@RefSec{High Integrity Systems} |
| 413 |
@end{Itemize} |
| 414 |
|
| 415 |
@begin{WideAbove} |
| 416 |
@Leading@Defn{normative} |
| 417 |
@Defn2{Term=[Annex],Sec=(normative)} |
| 418 |
The core language and the Specialized Needs Annexes are normative, |
| 419 |
except that the material in each of the items listed below |
| 420 |
is informative: |
| 421 |
@end{WideAbove} |
| 422 |
@begin(Itemize) |
| 423 |
Text under a NOTES or Examples heading. |
| 424 |
|
| 425 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 426 |
Each @Chg{Version=[3],New=[],Old=[clause or ]}subclause whose title starts |
| 427 |
with the word @lquotes@;Example@rquotes@; or @lquotes@;Examples@rquotes@;. |
| 428 |
@end(Itemize) |
| 429 |
|
| 430 |
All implementations shall conform to the core language. |
| 431 |
In addition, an implementation may conform separately to one or more |
| 432 |
Specialized Needs Annexes. |
| 433 |
|
| 434 |
@begin{WideAbove} |
| 435 |
@Leading@Keepnext@Defn{informative} |
| 436 |
@IndexSee{Term=[nonnormative],See=(informative)} |
| 437 |
@Defn2{Term=[Annex],Sec=(informative)} |
| 438 |
The following Annexes are informative: |
| 439 |
@end{WideAbove} |
| 440 |
@begin{Itemize} |
| 441 |
@RefSec{Language-Defined Aspects and Attributes} |
| 442 |
|
| 443 |
@RefSec{Language-Defined Pragmas} |
| 444 |
|
| 445 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0004-1]} |
| 446 |
@Chg{Version=[3],New=[@RefSec{Summary of Documentation Requirements}],Old=[@RefSec{Implementation-Defined Characteristics}]} |
| 447 |
|
| 448 |
@RefSec{Glossary} |
| 449 |
|
| 450 |
@RefSec{Syntax Summary} |
| 451 |
|
| 452 |
@Chgref{Version=[3],Kind=[Added],ARef=[AI05-0262-1]} |
| 453 |
@ChgAdded{Version=[3],Text=[@RefSec{Language-Defined Entities}]} |
| 454 |
|
| 455 |
@end{Itemize} |
| 456 |
@begin(Discussion) |
| 457 |
The idea of the Specialized Needs Annexes is that implementations |
| 458 |
can choose to target certain application areas. |
| 459 |
For example, an implementation specifically targeted to embedded |
| 460 |
machines might support the application-specific features for |
| 461 |
Real-time Systems, but not the application-specific features |
| 462 |
for Information Systems. |
| 463 |
|
| 464 |
The Specialized Needs Annexes extend the core language only in ways that |
| 465 |
users, implementations, and standards bodies are allowed to extend the |
| 466 |
language; |
| 467 |
for example, via additional library units, |
| 468 |
attributes, representation items (see @RefSecNum{Operational and Representation Aspects}), |
| 469 |
@nt{pragma}s, |
| 470 |
and constraints on semantic details that are left unspecified by the |
| 471 |
core language. |
| 472 |
Many implementations already provide much of the functionality defined |
| 473 |
by Specialized Needs Annexes; |
| 474 |
our goal is to increase uniformity among implementations by defining |
| 475 |
standard ways of providing the functionality. |
| 476 |
|
| 477 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00114-01]}@ChgNote{Make consistent with 18009} |
| 478 |
We recommend that the @Chg{Version=[2],New=[certification],Old=[validation]} |
| 479 |
procedures allow implementations to |
| 480 |
@Chg{Version=[2],New=[certify],Old=[validate]} the core language, plus any |
| 481 |
set of the Specialized Needs Annexes. We recommend that |
| 482 |
implementations @i{not} be allowed to @Chg{Version=[2],New=[certify],Old=[validate]} |
| 483 |
a portion of one of the Specialized Needs Annexes, |
| 484 |
although implementations can, of course, provide @Chg{Version=[2], |
| 485 |
New=[uncertified],Old=[unvalidated]} support for such |
| 486 |
portions. We have designed the Specialized Needs Annexes assuming that |
| 487 |
this recommendation is followed. Thus, our decisions about what to |
| 488 |
include and what not to include in those annexes are |
| 489 |
based on the assumption that each |
| 490 |
annex is @Chg{Version=[2],New=[certified],Old=[validated]} in an |
| 491 |
@lquotes@;all-or-nothing@rquotes@; manner. |
| 492 |
|
| 493 |
An implementation may, of course, |
| 494 |
support extensions that are different from |
| 495 |
(but possibly related to) |
| 496 |
those defined by one of the Specialized Needs Annexes. |
| 497 |
We recommend that, where appropriate, implementations do this by adding |
| 498 |
library units that are children of existing language-defined library |
| 499 |
packages. |
| 500 |
|
| 501 |
An implementation should not provide extensions that conflict with |
| 502 |
those defined in the Specialized Needs Annexes, in the following sense: |
| 503 |
Suppose an |
| 504 |
implementation supports a certain error-free program that uses only |
| 505 |
functionality defined in the core and in the Specialized Needs Annexes. |
| 506 |
The implementation should ensure that that program will still be error |
| 507 |
free in some possible full implementation of all of the Specialized Needs |
| 508 |
Annexes, and that the semantics of the program will not change. |
| 509 |
For example, an implementation should not provide a package |
| 510 |
with the same name as one defined in one of the Specialized Needs Annexes, |
| 511 |
but that behaves |
| 512 |
differently, @i{even if that implementation does not claim |
| 513 |
conformance to that Annex}. |
| 514 |
|
| 515 |
Note that the Specialized Needs Annexes do not conflict with each |
| 516 |
other; it is the intent that a single implementation can conform |
| 517 |
to all of them. |
| 518 |
@end(Discussion) |
| 519 |
|
| 520 |
@begin{WideAbove} |
| 521 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 522 |
@Chgref{Version=[4],Kind=[Revised],ARef=[AI12-0056-1]} |
| 523 |
Each @Chg{Version=[4],New=[clause],Old=[section]} is divided into |
| 524 |
@Chg{Version=[3],New=[],Old=[clauses and]} subclauses that have a |
| 525 |
common structure. |
| 526 |
Each @Chg{Version=[3],New=[],Old=[section, ]}clause@Chg{Version=[3],New=[],Old=[,]} |
| 527 |
and subclause first introduces its subject. |
| 528 |
After the introductory text, text is labeled with the following headings: |
| 529 |
@end{WideAbove} |
| 530 |
@end{Intro} |
| 531 |
|
| 532 |
@begin{MetaRules} |
| 533 |
These are not rules of the language, but guiding principles or goals used in |
| 534 |
defining the rules of the language. |
| 535 |
In some cases, the goal is only partially met; |
| 536 |
such cases are explained. |
| 537 |
|
| 538 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 539 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0005-1]} |
| 540 |
This is not part of the definition of the language, |
| 541 |
and does not appear in the @Chg{Version=[2],New=[Ada |
| 542 |
@Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95]}. |
| 543 |
@end{MetaRules} |
| 544 |
|
| 545 |
@begin{Syntax} |
| 546 |
@begin{SyntaxText} |
| 547 |
@Defn2{Term=[syntax], Sec=(under Syntax heading)} |
| 548 |
@Defn2{Term=[grammar], Sec=(under Syntax heading)} |
| 549 |
@Defn2{Term=[context free grammar], Sec=(under Syntax heading)} |
| 550 |
@Defn2{Term=[BNF (Backus-Naur Form)], Sec=(under Syntax heading)} |
| 551 |
@Defn2{Term=[Backus-Naur Form (BNF)], Sec=(under Syntax heading)} |
| 552 |
Syntax rules (indented). |
| 553 |
@end{SyntaxText} |
| 554 |
@end{Syntax} |
| 555 |
|
| 556 |
@begin{Resolution} |
| 557 |
@Chgref{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 558 |
@Defn{name resolution rules} |
| 559 |
@Defn{overloading rules} |
| 560 |
@Defn{resolution rules} |
| 561 |
Compile-time rules that are used in name resolution, |
| 562 |
including overload resolution. |
| 563 |
@begin{Discussion} |
| 564 |
These rules are observed at compile time. |
| 565 |
(We say @lquotes@;observed@rquotes@; rather than @lquotes@;checked,@rquotes@; |
| 566 |
because these rules are not individually checked. |
| 567 |
They are really just part of the @LegalityName@;s in @Chg{Version=[3],New=[Clause],Old=[Section]} |
| 568 |
@RefSecNum{Visibility Rules} that require exactly one interpretation of each |
| 569 |
constituent of a complete context.) The only rules used in overload resolution |
| 570 |
are the @SyntaxName@;s and the @ResolutionName@;s. |
| 571 |
|
| 572 |
When dealing with nonoverloadable declarations it sometimes makes no |
| 573 |
semantic difference whether a given rule is a @ResolutionName |
| 574 |
or a @LegalityName, |
| 575 |
and it is sometimes difficult to decide which it should be. |
| 576 |
We generally make a given rule a @ResolutionName only if it has to be. |
| 577 |
For example, |
| 578 |
@lquotes@;The @nt{name}, if any, in a @nt{raise_statement} shall be the @nt{name} |
| 579 |
of an exception.@rquotes@; |
| 580 |
is under @lquotes@;@LegalityTitle.@rquotes@; |
| 581 |
@end{Discussion} |
| 582 |
@end{Resolution} |
| 583 |
|
| 584 |
@begin{Legality} |
| 585 |
@Defn{legality rules} |
| 586 |
@Defn{compile-time error} |
| 587 |
@Defn2{Term=[error], Sec=(compile-time)} |
| 588 |
Rules that are enforced at compile time. |
| 589 |
@Defn2{Term=[legal], Sec=(construct)} |
| 590 |
@Defn2{Term=[illegal], Sec=(construct)} |
| 591 |
A construct is @i{legal} if it obeys all of the @LegalityName@;s. |
| 592 |
@begin{Discussion} |
| 593 |
These rules are not used in overload resolution. |
| 594 |
|
| 595 |
Note that run-time errors are always attached to exceptions; |
| 596 |
for example, it is not @lquotes@;illegal@rquotes@; to divide by zero, |
| 597 |
it just raises an exception. |
| 598 |
@end{Discussion} |
| 599 |
@end{Legality} |
| 600 |
|
| 601 |
@begin{StaticSem} |
| 602 |
@Defn{static semantics} |
| 603 |
@Defn{compile-time semantics} |
| 604 |
A definition of the compile-time effect of each construct. |
| 605 |
@begin{Discussion} |
| 606 |
The most important compile-time effects represent the effects |
| 607 |
on the symbol table associated with declarations (implicit or |
| 608 |
explicit). In addition, we use this heading as a bit of a grab |
| 609 |
bag for equivalences, package specifications, etc. |
| 610 |
For example, this is where we put statements like so-and-so is |
| 611 |
equivalent to such-and-such. (We ought to try to really mean it when we say |
| 612 |
such things!) |
| 613 |
Similarly, statements about magically-generated implicit declarations |
| 614 |
go here. |
| 615 |
These rules are generally written as statements of fact about the |
| 616 |
semantics, rather than as a you-shall-do-such-and-such sort of thing. |
| 617 |
@end{Discussion} |
| 618 |
@end{StaticSem} |
| 619 |
|
| 620 |
@begin{LinkTime} |
| 621 |
@Defn{post-compilation error} |
| 622 |
@Defn{post-compilation rules} |
| 623 |
@IndexSee{Term=[link-time error],See=(post-compilation error)} |
| 624 |
@Defn2{Term=[error], Sec=(link-time)} |
| 625 |
Rules that are enforced before running a partition. |
| 626 |
@Defn2{Term=[legal], Sec=(partition)} |
| 627 |
@Defn2{Term=[illegal], Sec=(partition)} |
| 628 |
A partition is legal if its compilation units are legal |
| 629 |
and it obeys all of the @LinkTimeName@;s. |
| 630 |
@begin{Discussion} |
| 631 |
It is not specified exactly when these rules are checked, so |
| 632 |
long as they are checked for any given partition before that partition starts |
| 633 |
running. An implementation may choose to check some such rules at compile |
| 634 |
time, and reject @nt{compilation_unit}s accordingly. |
| 635 |
Alternatively, an implementation may check such rules when the partition is |
| 636 |
created (usually known as @lquotes@;link time@rquotes@;), |
| 637 |
or when the partition is mapped to a particular piece of hardware (but before |
| 638 |
the partition starts running). |
| 639 |
@end{Discussion} |
| 640 |
@end{LinkTime} |
| 641 |
|
| 642 |
@begin{RunTime} |
| 643 |
@Defn{dynamic semantics} |
| 644 |
@Defn{run-time semantics} |
| 645 |
@Defn{run-time error} |
| 646 |
@Defn2{Term=[error], Sec=(run-time)} |
| 647 |
A definition of the run-time effect of each construct. |
| 648 |
@begin{Discussion} |
| 649 |
This heading describes what happens at run time. |
| 650 |
Run-time checks, |
| 651 |
which raise exceptions upon failure, |
| 652 |
are described here. |
| 653 |
Each item that involves a run-time check is marked with the name |
| 654 |
of the check @em these are the same check names that are used in a |
| 655 |
@nt{pragma} Suppress. |
| 656 |
Principle: Every check should have a name, |
| 657 |
usable in a @nt{pragma} Suppress. |
| 658 |
@end{Discussion} |
| 659 |
@end{RunTime} |
| 660 |
|
| 661 |
@begin{Bounded} |
| 662 |
@Defn{bounded error} |
| 663 |
@SeeAlso{Primary=[error], Other=(bounded error)} |
| 664 |
Situations that result in bounded (run-time) errors |
| 665 |
(see @RefSecNum{Classification of Errors}). |
| 666 |
@begin{Discussion} |
| 667 |
The @lquotes@;bounds@rquotes@; of each such error are described here @em |
| 668 |
that is, we characterize the set of all possible behaviors that can |
| 669 |
result from a bounded error occurring at run time. |
| 670 |
@end{Discussion} |
| 671 |
@end{Bounded} |
| 672 |
|
| 673 |
@begin{Erron} |
| 674 |
@Defn{erroneous execution} |
| 675 |
@SeeAlso{Primary=[error], Other=(erroneous execution)} |
| 676 |
Situations that result in erroneous execution |
| 677 |
(see @RefSecNum{Classification of Errors}). |
| 678 |
@end{Erron} |
| 679 |
|
| 680 |
@begin{ImplReq} |
| 681 |
@Defn{implementation requirements} |
| 682 |
Additional requirements for conforming implementations. |
| 683 |
@begin{Discussion} |
| 684 |
...as opposed to rules imposed on the programmer. |
| 685 |
An example might be, |
| 686 |
@lquotes@;The smallest representable duration, Duration'Small, |
| 687 |
shall not be greater than twenty milliseconds.@rquotes@; |
| 688 |
|
| 689 |
It's really just an issue of how the rule is worded. |
| 690 |
We could write the same rule as @lquotes@;The smallest representable duration is |
| 691 |
an implementation-defined value less than or equal to 20 milliseconds@rquotes@; |
| 692 |
and then it would be under @lquotes@;@StaticSemTitle.@rquotes@; |
| 693 |
@end{Discussion} |
| 694 |
@end{ImplReq} |
| 695 |
|
| 696 |
@begin{DocReq} |
| 697 |
@Defn{documentation requirements} |
| 698 |
Documentation requirements for conforming implementations. |
| 699 |
@begin{Discussion} |
| 700 |
These requirements are beyond those that are implicitly specified by |
| 701 |
the phrase @lquotes@;implementation defined@rquotes@;. The |
| 702 |
latter require documentation as well, but we don't repeat these cases |
| 703 |
under this heading. Usually this heading is used for when the |
| 704 |
description of the documentation requirement is longer and does not |
| 705 |
correspond directly to one, narrow normative sentence. |
| 706 |
@end{Discussion} |
| 707 |
@end{DocReq} |
| 708 |
|
| 709 |
@begin{Metrics} |
| 710 |
@Defn{metrics} |
| 711 |
Metrics that are specified for the time/space properties of the execution |
| 712 |
of certain language constructs. |
| 713 |
@end{Metrics} |
| 714 |
|
| 715 |
@begin{ImplPerm} |
| 716 |
@Defn{implementation permissions} |
| 717 |
Additional permissions given to the implementer. |
| 718 |
@begin{Discussion} |
| 719 |
For example, @lquotes@;The implementation is allowed to impose further |
| 720 |
restrictions on the record aggregates allowed in code statements.@rquotes@; |
| 721 |
When there are restrictions on the permission, |
| 722 |
those restrictions are given here also. |
| 723 |
For example, @lquotes@;An implementation is allowed to restrict the kinds of |
| 724 |
subprograms that are allowed to be main subprograms. |
| 725 |
However, it shall support at least parameterless procedures.@rquotes@; |
| 726 |
@em we don't split this up between here and @lquotes@;@ImplReqTitle.@rquotes@; |
| 727 |
@end{Discussion} |
| 728 |
@end{ImplPerm} |
| 729 |
|
| 730 |
@begin{ImplAdvice} |
| 731 |
@Defn{implementation advice} |
| 732 |
@Defn{advice} |
| 733 |
Optional advice given to the implementer. |
| 734 |
The word @lquotes@;should@rquotes@; is used to indicate that the advice is |
| 735 |
a recommendation, not a requirement. |
| 736 |
It is implementation defined |
| 737 |
whether or not a given recommendation is obeyed. |
| 738 |
@ChgImplDef{Version=[2],Kind=[Revised],InitialVersion=[0], |
| 739 |
Text=[Whether or not each recommendation |
| 740 |
given in @ImplAdviceTitle is followed@Chg{Version=[2], |
| 741 |
New=[ @em see @RefSec{Implementation Advice} for a listing],Old=[]}.]} |
| 742 |
@begin{Discussion} |
| 743 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 744 |
The advice generally shows the intended implementation, but |
| 745 |
the implementer is free to ignore it. |
| 746 |
The implementer is the sole arbiter of whether or not the advice has |
| 747 |
been obeyed, if not, whether the reason is a good one, |
| 748 |
and whether the required documentation is sufficient. |
| 749 |
@Chg{Version=[1],New=[],Old=[@PDefn2{Term=[ACVC],Sec=(Ada Compiler Validation Capability)} |
| 750 |
@PDefn2{Term=[Ada Compiler Validation Capability],Sec=(ACVC)}]} |
| 751 |
It would be wrong for the @Chg{Version=[1],New=[ACATS],Old=[ACVC]} to enforce any of |
| 752 |
this advice. |
| 753 |
|
| 754 |
For example, |
| 755 |
@lquotes@;Whenever possible, the implementation should choose a value no |
| 756 |
greater than fifty microseconds for the smallest representable duration, |
| 757 |
Duration'Small.@rquotes@; |
| 758 |
|
| 759 |
We use this heading, for example, when the rule is so low level or |
| 760 |
implementation-oriented as to be untestable. |
| 761 |
We also use this heading when we wish to encourage implementations |
| 762 |
to behave in a certain way in most cases, but we do not wish to |
| 763 |
burden implementations by requiring the behavior. |
| 764 |
@end{Discussion} |
| 765 |
@end{ImplAdvice} |
| 766 |
|
| 767 |
@begin{Notes} |
| 768 |
@Defn{notes} |
| 769 |
Notes emphasize consequences of the rules |
| 770 |
described in the (sub)clause or elsewhere. |
| 771 |
This material is informative. |
| 772 |
@end{Notes} |
| 773 |
|
| 774 |
@begin{Examples} |
| 775 |
Examples illustrate the possible forms of the constructs described. |
| 776 |
This material is informative. |
| 777 |
@begin{Discussion} |
| 778 |
@ @* @Comment{Two blank lines: why? Because it was in the original.} |
| 779 |
@* |
| 780 |
The next three headings list all language changes between Ada 83 |
| 781 |
and Ada 95. Language changes are any change that changes the set of |
| 782 |
text strings that are legal Ada programs, or changes the meaning of |
| 783 |
any legal program. |
| 784 |
Wording changes, such as changes in terminology, are not language |
| 785 |
changes. |
| 786 |
Each language change falls into one of the following three |
| 787 |
categories: |
| 788 |
@end{Discussion} |
| 789 |
@end{Examples} |
| 790 |
|
| 791 |
@begin{Inconsistent83} |
| 792 |
@Defn{inconsistencies with Ada 83} |
| 793 |
This heading lists all of the upward inconsistencies between Ada 83 and Ada |
| 794 |
95. Upward inconsistencies are situations in which a legal Ada 83 program |
| 795 |
is a legal Ada 95 program with different semantics. |
| 796 |
This type of upward incompatibility is the worst type for users, |
| 797 |
so we only tolerate it in rare situations. |
| 798 |
|
| 799 |
(Note that the semantics of a program is not the same thing as the |
| 800 |
behavior of the program. |
| 801 |
Because of Ada's indeterminacy, |
| 802 |
the @lquotes@;semantics@rquotes@; of a given feature describes a @i{set} of behaviors |
| 803 |
that can be exhibited by that feature. |
| 804 |
The set can contain more than one allowed behavior. |
| 805 |
Thus, when we ask whether the semantics changes, |
| 806 |
we are asking whether the set of behaviors changes.) |
| 807 |
|
| 808 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 809 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 810 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 811 |
This is not part of the definition of the language, |
| 812 |
and does not appear in the @Chg{Version=[2],New=[Ada 95@Chg{Version=[3],New=[,],Old=[ or]} |
| 813 |
Ada 2005@Chg{Version=[3],New=[@Chg{Version=[5],New=[, Ada 2012, |
| 814 |
or Ada 202x],Old=[, or Ada 2012]}],Old=[]} RM],Old=[RM95]}. |
| 815 |
@end{Inconsistent83} |
| 816 |
|
| 817 |
@begin{Incompatible83} |
| 818 |
@Defn{incompatibilities with Ada 83} |
| 819 |
This heading lists all of the upward incompatibilities between Ada 83 |
| 820 |
and Ada 95, except for the ones listed under @lquotes@;@Inconsistent83Title@rquotes@; |
| 821 |
above. These are the situations in which a legal Ada 83 program is |
| 822 |
illegal in Ada 95. |
| 823 |
We do not generally consider a change that turns erroneous execution |
| 824 |
into an exception, or into an illegality, to be upwardly incompatible. |
| 825 |
|
| 826 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 827 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 828 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 829 |
This is not part of the definition of the language, |
| 830 |
and does not appear in the @Chg{Version=[2],New=[Ada 95@Chg{Version=[3],New=[,],Old=[ or]} |
| 831 |
Ada 2005@Chg{Version=[3],New=[@Chg{Version=[5],New=[, Ada 2012, or |
| 832 |
Ada 202x],Old=[, or Ada 2012]}],Old=[]} RM],Old=[RM95]}. |
| 833 |
@end{Incompatible83} |
| 834 |
|
| 835 |
@begin{Extend83} |
| 836 |
@Defn{extensions to Ada 83} |
| 837 |
This heading is used to list all upward compatible language changes; |
| 838 |
that is, language extensions. |
| 839 |
These are the situations in which a legal Ada 95 program is not a |
| 840 |
legal Ada 83 program. |
| 841 |
The vast majority of language changes fall into this category. |
| 842 |
|
| 843 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 844 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 845 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 846 |
This is not part of the definition of the language, |
| 847 |
and does not appear in the @Chg{Version=[2],New=[Ada 95@Chg{Version=[3],New=[,],Old=[ or]} |
| 848 |
Ada 2005@Chg{Version=[3],New=[@Chg{Version=[5],New=[, Ada 2012, or |
| 849 |
Ada 202x],Old=[, or Ada 2012]}],Old=[]} RM],Old=[RM95]}. |
| 850 |
|
| 851 |
@Leading@ @* @Comment{Two blank lines: why? Because it was in the original.} |
| 852 |
@* |
| 853 |
As explained above, |
| 854 |
the next heading does not represent any language change: |
| 855 |
@end{Extend83} |
| 856 |
|
| 857 |
@begin{DiffWord83} |
| 858 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 859 |
@Defn{wording changes from Ada 83} |
| 860 |
This heading lists some of the nonsemantic changes between @Chg{Version=[2], |
| 861 |
New=[the Ada 83 RM],Old=[RM83]} and |
| 862 |
the @Chg{Version=[2],New=[Ada 95 RM],Old=[RM95]}. |
| 863 |
It is incomplete; we have not attempted to list all wording |
| 864 |
changes, but only the @lquotes@;interesting@rquotes@; ones. |
| 865 |
|
| 866 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 867 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 868 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 869 |
This is not part of the definition of the language, |
| 870 |
and does not appear in the @Chg{Version=[2],New=[Ada 95@Chg{Version=[3],New=[,],Old=[ or]} |
| 871 |
Ada 2005@Chg{Version=[3],New=[@Chg{Version=[5],New=[, Ada 2012, or |
| 872 |
Ada 202x],Old=[, or Ada 2012]}],Old=[]} RM],Old=[RM95]}. |
| 873 |
@end{DiffWord83} |
| 874 |
|
| 875 |
@begin{Discussion} |
| 876 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 877 |
@ChgAdded{Version=[2],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 878 |
@* |
| 879 |
The next three headings list all language changes between Ada 95 |
| 880 |
and Ada 2005 (the language defined by the Ada 95 standard plus |
| 881 |
Technical Corrigendum 1 plus Amendment 1). |
| 882 |
Each language change falls into one of the following three |
| 883 |
categories:]} |
| 884 |
@end{Discussion} |
| 885 |
|
| 886 |
@begin{Inconsistent95} |
| 887 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 888 |
@ChgAdded{Version=[2],Text=[@Defn{inconsistencies with Ada 95} |
| 889 |
This heading lists all of the upward inconsistencies between Ada 95 and Ada |
| 890 |
2005. Upward inconsistencies are situations in which a legal Ada 95 program |
| 891 |
is a legal Ada 2005 program with different semantics.]} |
| 892 |
|
| 893 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 894 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0005-1]} |
| 895 |
@ChgAdded{Version=[2],Text=[Inconsistencies marked with |
| 896 |
@b[Corrigendum:]@Defn{Corrigendum} are corrections to the original Ada 95 |
| 897 |
definition introduced by Corrigendum 1. Inconsistencies marked with |
| 898 |
@b[Amendment Correction:]@Defn{Amendment Correction} are corrections to the |
| 899 |
original Ada 95 definition added by Amendment 1. Formally, these are |
| 900 |
inconsistencies caused by Ada Issues classified as Binding Interpretations; |
| 901 |
implementations of Ada 95 are supposed to follow these corrections, not the |
| 902 |
original flawed language definition. Thus, these strictly speaking are not |
| 903 |
inconsistencies between Ada 95 and Ada 2005. Practically, however, they very |
| 904 |
well may be, as early Ada 95 implementations @Chg{Version=[3],New=[might],Old=[may]} |
| 905 |
not follow the recommendation. |
| 906 |
Inconsistencies so marked are not portable between Ada 95 implementations, |
| 907 |
while usually Ada 2005 will have more clearly defined behavior. Therefore, we |
| 908 |
document these for completeness.]} |
| 909 |
|
| 910 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 911 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 912 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 913 |
@ChgAdded{Version=[2],Text=[This is not part of the definition of the language, |
| 914 |
and does not appear in the Ada 2005 @Chg{Version=[3],New=[@Chg{Version=[5],New=[, |
| 915 |
Ada 2012, or Ada 202x],Old=[or Ada 2012]}],Old=[]} RM.]} |
| 916 |
@end{Inconsistent95} |
| 917 |
|
| 918 |
@begin{Incompatible95} |
| 919 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 920 |
@ChgAdded{Version=[2],Text=[@Defn{incompatibilities with Ada 95} |
| 921 |
This heading lists all of the upward incompatibilities between Ada 95 |
| 922 |
and Ada 2005, except for the ones listed under @lquotes@;@Inconsistent95Title@rquotes@; |
| 923 |
above. These are the situations in which a legal Ada 95 program is |
| 924 |
illegal in Ada 2005.]} |
| 925 |
|
| 926 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 927 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0005-1]} |
| 928 |
@ChgAdded{Version=[2],Text=[As with inconsistencies, incompatibilities |
| 929 |
marked with @b[Corrigendum:] |
| 930 |
are corrections to the original Ada 95 definition introduced by Corrigendum |
| 931 |
1. Incompatibilities marked with @b[Amendment Correction:] are corrections |
| 932 |
to the original Ada 95 definition added by Amendment 1. Formally, these are |
| 933 |
incompatibilities caused by Ada Issues classified as Binding Interpretations; |
| 934 |
implementations of Ada 95 are supposed to follow these corrections, not the |
| 935 |
original flawed language definition. Thus, |
| 936 |
these strictly speaking are not incompatibilities between Ada 95 and Ada 2005. |
| 937 |
Practically, however, they very well may be, as early Ada 95 implementations |
| 938 |
@Chg{Version=[3],New=[might],Old=[may]} not follow the recommendation. |
| 939 |
Therefore, some Ada 95 implementations |
| 940 |
may be able to compile the examples, while others |
| 941 |
@Chg{Version=[3],New=[might],Old=[may]} not. In |
| 942 |
@Chg{Version=[3],New=[contrast],Old=[constrast]}, |
| 943 |
Ada 2005 compilers will have consistent behavior. Therefore, we document these |
| 944 |
for completeness.]} |
| 945 |
|
| 946 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 947 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 948 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 949 |
@ChgAdded{Version=[2],Text=[This is not part of the definition of the language, |
| 950 |
and does not appear in the Ada 2005 @Chg{Version=[3],New=[@Chg{Version=[5],New=[, |
| 951 |
Ada 2012, or Ada 202x],Old=[or Ada 2012]}],Old=[]} RM.]} |
| 952 |
@end{Incompatible95} |
| 953 |
|
| 954 |
@begin{Extend95} |
| 955 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 956 |
@Chg{Version=[2],New=[@Defn{extensions to Ada 95} |
| 957 |
This heading is used to list all upward compatible language changes; |
| 958 |
that is, language extensions. |
| 959 |
These are the situations in which a legal Ada 2005 program is not a |
| 960 |
legal Ada 95 program. |
| 961 |
The vast majority of language changes fall into this category.],Old=[]} |
| 962 |
|
| 963 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 964 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0005-1]} |
| 965 |
@ChgAdded{Version=[2],Text=[As with incompatibilities, extensions |
| 966 |
marked with @b[Corrigendum:] |
| 967 |
are corrections to the original Ada 95 definition introduced by Corrigendum |
| 968 |
1. Extensions marked with @b[Amendment Correction:] are corrections |
| 969 |
to the original Ada 95 definition added by Amendment 1. Formally, these are |
| 970 |
extensions allowed by Ada Issues classified as Binding Interpretations. |
| 971 |
As corrections, implementations of Ada 95 are allowed to implement these |
| 972 |
extensions. Thus, these strictly speaking are not extensions of Ada 95; |
| 973 |
they're part of Ada 95. Practically, however, they very well may be extensions, |
| 974 |
as early Ada 95 implementations @Chg{Version=[3],New=[might],Old=[may]} not |
| 975 |
implement the extension. Therefore, some Ada 95 implementations may be able |
| 976 |
to compile the examples, while others @Chg{Version=[3],New=[might],Old=[may]} |
| 977 |
not. In @Chg{Version=[3],New=[contrast],Old=[constrast]}, |
| 978 |
Ada 2005 compilers will always support the extensions. |
| 979 |
Therefore, we document these for completeness.]} |
| 980 |
|
| 981 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 982 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 983 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 984 |
@ChgAdded{Version=[2],Text=[This is not part of the definition of the language, |
| 985 |
and does not appear in the Ada 2005 @Chg{Version=[3],New=[@Chg{Version=[5],New=[, |
| 986 |
Ada 2012, or Ada 202x],Old=[or Ada 2012]}],Old=[]} RM.]} |
| 987 |
|
| 988 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 989 |
@ChgAdded{Version=[2],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 990 |
@* |
| 991 |
As explained above, |
| 992 |
the next heading does not represent any language change:]} |
| 993 |
@end{Extend95} |
| 994 |
|
| 995 |
@begin{DiffWord95} |
| 996 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 997 |
@Chg{Version=[2],New=[@Defn{wording changes from Ada 95} |
| 998 |
This heading lists some of the nonsemantic changes between the Ada 95 RM and |
| 999 |
the Ada 2005 RM. This heading lists only @lquotes@;interesting@rquotes@; changes |
| 1000 |
(for instance, editorial corrections are not listed). Changes which |
| 1001 |
come from Technical Corrigendum 1 are marked @b{Corrigendum}; unmarked changes |
| 1002 |
come from Amendment 1.],Old=[]} |
| 1003 |
|
| 1004 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 1005 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 1006 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 1007 |
@ChgAdded{Version=[2],Text=[This is not part of the definition of the language, |
| 1008 |
and does not appear in the Ada 2005 @Chg{Version=[3],New=[@Chg{Version=[5],New=[, |
| 1009 |
Ada 2012, or Ada 202x],Old=[or Ada 2012]}],Old=[]} RM.]} |
| 1010 |
@end{DiffWord95} |
| 1011 |
|
| 1012 |
|
| 1013 |
@begin{Discussion} |
| 1014 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1015 |
@ChgAdded{Version=[3],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 1016 |
@* |
| 1017 |
The next three headings list all language changes between Ada 2005 |
| 1018 |
(the language defined by the Ada 95 standard plus |
| 1019 |
Technical Corrigendum 1 plus Amendment 1) |
| 1020 |
and Ada 2012 (the language defined by the third edition of the Standard@Comment{was: |
| 1021 |
Ada 95 standard plus Technical Corrigendum 1 plus Amendment 1 plus Amendment 2}). |
| 1022 |
Each language change falls into one of the following three categories:]} |
| 1023 |
@end{Discussion} |
| 1024 |
|
| 1025 |
@begin{Inconsistent2005} |
| 1026 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1027 |
@ChgAdded{Version=[3],Text=[@Defn{inconsistencies with Ada 2005} |
| 1028 |
This heading lists all of the upward inconsistencies between Ada 2005 and Ada |
| 1029 |
2012. Upward inconsistencies are situations in which a legal Ada 2005 program |
| 1030 |
is a legal Ada 2012 program with different semantics.]} |
| 1031 |
|
| 1032 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1033 |
@ChgAdded{Version=[3],Text=[Inconsistencies marked with |
| 1034 |
@b[Correction:]@Defn{Correction} are corrections to the original Ada 2005 |
| 1035 |
definition added by the third edition of the Standard. |
| 1036 |
Formally, these are |
| 1037 |
inconsistencies caused by Ada Issues classified as Binding Interpretations; |
| 1038 |
implementations of Ada 2005 are supposed to follow these corrections, not the |
| 1039 |
original flawed language definition. Thus, these strictly speaking are not |
| 1040 |
inconsistencies between Ada 2005 and Ada 2012. Practically, however, they very |
| 1041 |
well may be, as early Ada 2005 implementations might not follow the recommendation. |
| 1042 |
Inconsistencies so marked are not portable between Ada 2005 implementations, |
| 1043 |
while usually Ada 2012 will have more clearly defined behavior. Therefore, we |
| 1044 |
document these for completeness.]} |
| 1045 |
|
| 1046 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1047 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 1048 |
@ChgAdded{Version=[3],Text=[This is not part of the definition of the language, |
| 1049 |
and does not appear in the Ada 2012@Chg{Version=[5],New=[ or Ada 202x],Old=[]} |
| 1050 |
RM.]} |
| 1051 |
@end{Inconsistent2005} |
| 1052 |
|
| 1053 |
@begin{Incompatible2005} |
| 1054 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1055 |
@ChgAdded{Version=[3],Text=[@Defn{incompatibilities with Ada 2005} |
| 1056 |
This heading lists all of the upward incompatibilities between Ada 2005 |
| 1057 |
and Ada 2012, except for the ones listed under @lquotes@;@Inconsistent2005Title@rquotes@; |
| 1058 |
above. These are the situations in which a legal Ada 2005 program is |
| 1059 |
illegal in Ada 2012.]} |
| 1060 |
|
| 1061 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1062 |
@ChgAdded{Version=[3],Text=[As with inconsistencies, incompatibilities |
| 1063 |
marked with @b[Correction:] are corrections to the original Ada 2005 definition |
| 1064 |
added by the third edition. Formally, these are |
| 1065 |
incompatibilities caused by Ada Issues classified as Binding Interpretations; |
| 1066 |
implementations of Ada 2005 are supposed to follow these corrections, not the |
| 1067 |
original flawed language definition. Thus, |
| 1068 |
these strictly speaking are not incompatibilities between Ada 2005 and Ada 2012. |
| 1069 |
Practically, however, they very well may be, as early Ada 2005 implementations |
| 1070 |
might not follow the recommendation. Therefore, some Ada 2005 implementations |
| 1071 |
may be able to compile the examples, while others might not. In |
| 1072 |
@Chg{Version=[3],New=[contrast],Old=[constrast]}, |
| 1073 |
Ada 2012 compilers will have consistent behavior. Therefore, we document these |
| 1074 |
for completeness.]} |
| 1075 |
|
| 1076 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1077 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 1078 |
@ChgAdded{Version=[3],Text=[This is not part of the definition of the language, |
| 1079 |
and does not appear in the Ada 2012@Chg{Version=[5],New=[ or Ada 202x],Old=[]} |
| 1080 |
RM.]} |
| 1081 |
@end{Incompatible2005} |
| 1082 |
|
| 1083 |
@begin{Extend2005} |
| 1084 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1085 |
@ChgAdded{Version=[3],Text=[@Defn{extensions to Ada 2005} |
| 1086 |
This heading is used to list all upward compatible language changes; |
| 1087 |
that is, language extensions. |
| 1088 |
These are the situations in which a legal Ada 2012 program is not a |
| 1089 |
legal Ada 2005 program. |
| 1090 |
The vast majority of language changes fall into this category.]} |
| 1091 |
|
| 1092 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1093 |
@ChgAdded{Version=[3],Text=[As with incompatibilities, extensions |
| 1094 |
marked with @b[Correction:] |
| 1095 |
are corrections to the original Ada 2005 definition added by the third edition. |
| 1096 |
Formally, these are extensions allowed by Ada Issues classified as Binding |
| 1097 |
Interpretations. As corrections, implementations of Ada 2005 (and sometimes Ada 95) |
| 1098 |
are allowed to implement these extensions. Thus, these strictly speaking are not |
| 1099 |
extensions of Ada 2005; they're part of Ada 2005. Practically, however, they |
| 1100 |
very well may be extensions, as early Ada 2005 implementations might not implement |
| 1101 |
the extension. Therefore, some Ada 2005 implementations may be able to compile |
| 1102 |
the examples, while others might not. In contrast, Ada 2012 compilers will always |
| 1103 |
support the extensions. Therefore, we document these for completeness.]} |
| 1104 |
|
| 1105 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1106 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 1107 |
@ChgAdded{Version=[3],Text=[This is not part of the definition of the language, |
| 1108 |
and does not appear in the Ada 2012@Chg{Version=[5],New=[ or Ada 202x],Old=[]} |
| 1109 |
RM.]} |
| 1110 |
|
| 1111 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1112 |
@ChgAdded{Version=[3],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 1113 |
@* |
| 1114 |
As explained above, the next heading does not represent any language change:]} |
| 1115 |
@end{Extend2005} |
| 1116 |
|
| 1117 |
@begin{DiffWord2005} |
| 1118 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1119 |
@ChgAdded{Version=[3],Text=[@Defn{wording changes from Ada 2005} |
| 1120 |
This heading lists some of the nonsemantic changes between the Ada 2005 RM and |
| 1121 |
the Ada 2012 RM. This heading lists only @lquotes@;interesting@rquotes@; changes |
| 1122 |
(for instance, editorial corrections are not listed). Items marked |
| 1123 |
@b[Correction:] come from Ada Issues classified |
| 1124 |
as Binding Interpretations and strictly speaking belong to Ada 2005; other items |
| 1125 |
only belong to Ada 2012.]} |
| 1126 |
|
| 1127 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1128 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 1129 |
@ChgAdded{Version=[3],Text=[This is not part of the definition of the language, |
| 1130 |
and does not appear in the Ada 2012@Chg{Version=[5],New=[ or Ada 202x],Old=[]} |
| 1131 |
RM.]} |
| 1132 |
@end{DiffWord2005} |
| 1133 |
|
| 1134 |
|
| 1135 |
@begin{Discussion} |
| 1136 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1137 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1138 |
@ChgAdded{Version=[4],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 1139 |
@* |
| 1140 |
The next three headings list all language changes between |
| 1141 |
@Chg{Version=[5],New=[Ada 2012 |
| 1142 |
(the language defined by ISO/IEC 8652:2012(E)) |
| 1143 |
and Ada 202x (the language defined by this edition of the Standard)],Old=[original |
| 1144 |
Ada 2012 (the language defined by unmodified ISO/IEC 8652:2012(E)) and current |
| 1145 |
Ada 2012 (the language defined by ISO/IEC 8652:2012(E) as |
| 1146 |
corrected by the Corrigendum ISO/IEC 8652:2012/Cor 1:2016)]}. |
| 1147 |
Each language change falls into one of the following three categories:]} |
| 1148 |
@end{Discussion} |
| 1149 |
|
| 1150 |
@begin{Inconsistent2012} |
| 1151 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1152 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1153 |
@ChgAdded{Version=[4],Text=[@Defn{inconsistencies with Ada 2012} |
| 1154 |
This heading lists all of the upward inconsistencies between |
| 1155 |
@Chg{Version=[5],New=[Ada 2012 and Ada 202x],Old=[original and current Ada 2012]}. |
| 1156 |
Upward inconsistencies are situations in which a legal |
| 1157 |
@Chg{Version=[5],New=[Ada 2012 program is a legal Ada 202x],Old=[ |
| 1158 |
original Ada 2012 program is a legal current Ada 2012]} |
| 1159 |
program with different semantics.]} |
| 1160 |
|
| 1161 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1162 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1163 |
@ChgAdded{Version=[4],Text=[Inconsistencies marked with |
| 1164 |
@b[Corrigendum:]@Defn{Corrigendum} are corrections to the original Ada 2012 |
| 1165 |
definition added by Technical Corrigendum 1 to Ada 2012.@Chg{Version=[5], |
| 1166 |
New=[ Inconsistencies marked |
| 1167 |
with @b[Correction:]@Defn{Correction} are corrections to the original Ada 2012 |
| 1168 |
definition added by this edition of the Standard.],Old=[]} |
| 1169 |
Formally, these are |
| 1170 |
inconsistencies caused by Ada Issues classified as Binding Interpretations; |
| 1171 |
implementations of Ada 2012 are supposed to follow these corrections, not the |
| 1172 |
original flawed language definition. Thus, these strictly speaking are not |
| 1173 |
inconsistencies between @Chg{Version=[5],New=[Ada 2012 and Ada 202x],Old=[current |
| 1174 |
and original Ada 2012]}. Practically, however, they very |
| 1175 |
well may be, as early Ada 2012 implementations might not follow the recommendation. |
| 1176 |
Inconsistencies so marked are not portable between Ada 2012 |
| 1177 |
implementations@Chg{Version=[5],New=[, while usually Ada 202x will have |
| 1178 |
more clearly defined behavior],Old=[]}. Therefore, we |
| 1179 |
document these for completeness.]} |
| 1180 |
|
| 1181 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1182 |
@ChgAdded{Version=[4],Text=[This is not part of the definition of the language, |
| 1183 |
and does not appear in any version of the Ada RM.]} |
| 1184 |
@end{Inconsistent2012} |
| 1185 |
|
| 1186 |
@begin{Incompatible2012} |
| 1187 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1188 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1189 |
@ChgAdded{Version=[4],Text=[@Defn{incompatibilities with Ada 2012} |
| 1190 |
This heading lists all of the upward incompatibilities between |
| 1191 |
@Chg{Version=[5],New=[Ada 2012 and Ada 202x],Old=[original and current Ada 2012]}, |
| 1192 |
except for the ones listed under @lquotes@;@Inconsistent2012Title@rquotes@; |
| 1193 |
above. These are the situations in which a legal |
| 1194 |
@Chg{Version=[5],New=[Ada 2012 program is illegal in Ada 202x],Old=[ |
| 1195 |
original Ada 2012 program is illegal in current Ada 2012]}.]} |
| 1196 |
|
| 1197 |
|
| 1198 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1199 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1200 |
@ChgAdded{Version=[4],Text=[As with inconsistencies, incompatibilities |
| 1201 |
marked with |
| 1202 |
@b[Corrigendum:]@Defn{Corrigendum} are corrections to the original Ada 2012 |
| 1203 |
definition added by Corrigendum 1 to Ada 2012@Chg{Version=[5], |
| 1204 |
New=[, and incompatibilities marked |
| 1205 |
with @b[Correction:]@Defn{Correction} are corrections to the original Ada 2012 |
| 1206 |
definition added by this edition.],Old=[]} |
| 1207 |
Formally, these are |
| 1208 |
incompatibilities caused by Ada Issues classified as Binding Interpretations; |
| 1209 |
implementations of Ada 2012 are supposed to follow these corrections, not the |
| 1210 |
original flawed language definition. Thus, |
| 1211 |
these strictly speaking are not incompatibilities between |
| 1212 |
@Chg{Version=[5],New=[Ada 2012 and Ada 202x],Old=[current and original Ada 2012]}. |
| 1213 |
Practically, however, they very well may be, as early Ada 2012 implementations |
| 1214 |
might not follow the recommendation. Therefore, some Ada 2012 implementations |
| 1215 |
may be able to compile the examples, while others might |
| 1216 |
not.@Chg{Version=[5],New=[ In contrast, Ada 202x compilers will have |
| 1217 |
consistent behavior.],Old=[]} Therefore, we document these |
| 1218 |
for completeness.]} |
| 1219 |
|
| 1220 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1221 |
@ChgAdded{Version=[4],Text=[This is not part of the definition of the language, |
| 1222 |
and does not appear in any version of the Ada RM.]} |
| 1223 |
@end{Incompatible2012} |
| 1224 |
|
| 1225 |
@begin{Extend2012} |
| 1226 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1227 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1228 |
@ChgAdded{Version=[4],Text=[@Defn{extensions to Ada 2012} |
| 1229 |
This heading is used to list all upward compatible language changes; |
| 1230 |
that is, language extensions. |
| 1231 |
These are the situations in which a legal |
| 1232 |
@Chg{Version=[5],New=[Ada 202x program is not a legal Ada 202x],Old=[ |
| 1233 |
current Ada 2012 program is not a legal original Ada 2012]} program. |
| 1234 |
The vast majority of language changes fall into this category.]} |
| 1235 |
|
| 1236 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1237 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1238 |
@ChgAdded{Version=[4],Text=[As with incompatibilities, extensions |
| 1239 |
marked with |
| 1240 |
@b[Corrigendum:]@Defn{Corrigendum} are corrections to the original Ada 2012 |
| 1241 |
definition added by Corrigendum 1 to Ada 2012@Chg{Version=[5], |
| 1242 |
New=[, and extensions |
| 1243 |
marked with @b[Correction:] are corrections to the original Ada 2012 definition |
| 1244 |
added by this edition],Old=[]}. |
| 1245 |
Formally, these are extensions allowed by Ada Issues classified as Binding |
| 1246 |
Interpretations. As corrections, implementations of Ada 2012 (and sometimes Ada 95) |
| 1247 |
are allowed to implement these extensions. Thus, these strictly speaking are not |
| 1248 |
extensions of Ada 2012; they're part of Ada 2012. Practically, however, they |
| 1249 |
very well may be extensions, as early Ada 2012 implementations might not implement |
| 1250 |
the extension. Therefore, some Ada 2012 implementations may be able to compile |
| 1251 |
the examples, while others might not.@Chg{Version=[5],New=[ In contrast, |
| 1252 |
Ada 202x compilers will always support the extensions.],Old=[]} |
| 1253 |
Therefore, we document these for completeness.]} |
| 1254 |
|
| 1255 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1256 |
@ChgAdded{Version=[4],Text=[This is not part of the definition of the language, |
| 1257 |
and does not appear in any version of the Ada RM.]} |
| 1258 |
|
| 1259 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1260 |
@ChgAdded{Version=[4],Type=[Leading],Text=[@ @* @Comment{Two blank lines: why? Because it was in the Ada 95 original.} |
| 1261 |
@* |
| 1262 |
As explained above, the next heading does not represent any language change:]} |
| 1263 |
@end{Extend2012} |
| 1264 |
|
| 1265 |
@begin{DiffWord2012} |
| 1266 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1267 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1268 |
@ChgAdded{Version=[4],Text=[@Defn{wording changes from Ada 2012} |
| 1269 |
This heading lists some of the nonsemantic changes between the |
| 1270 |
@Chg{Version=[5],New=[Ada 2012 RM and |
| 1271 |
the Ada 202x RM],Old=[original and corrected Ada 2012 RM]}. This heading lists |
| 1272 |
only @lquotes@;interesting@rquotes@; changes |
| 1273 |
(for instance, editorial corrections are not listed). Items marked |
| 1274 |
@b[Corrigendum:]@Defn{Corrigendum} are included in Corrigendum 1 to Ada |
| 1275 |
2012@Chg{Version=[5],New=[, and items marked with @b[Correction:] are added by this edition. |
| 1276 |
In both cases, the],Old=[. These]} |
| 1277 |
items come from Ada Issues classified |
| 1278 |
as Binding Interpretations and strictly speaking belong to Ada |
| 1279 |
2012@Chg{Version=[5],New=[; other items only belong to Ada 202x],Old=[]}.]} |
| 1280 |
|
| 1281 |
@ChgRef{Version=[4],Kind=[AddedNormal]} |
| 1282 |
@ChgAdded{Version=[4],Text=[This is not part of the definition of the language, |
| 1283 |
and does not appear in any version of the Ada RM.]} |
| 1284 |
@end{DiffWord2012} |
| 1285 |
|
| 1286 |
|
| 1287 |
@LabeledSubClause{Conformity of an Implementation with the Standard} |
| 1288 |
|
| 1289 |
@begin{ImplReq} |
| 1290 |
|
| 1291 |
@Leading@Keepnext@Defn2{Term=[conformance],Sec=(of an implementation with the Standard)} |
| 1292 |
A conforming implementation shall: |
| 1293 |
@begin{Discussion} |
| 1294 |
@Defn{implementation} |
| 1295 |
The @i{implementation} is the software and hardware that implements |
| 1296 |
the language. |
| 1297 |
This includes compiler, linker, operating system, hardware, etc. |
| 1298 |
|
| 1299 |
We first define what it means to @lquotes@;conform@rquotes@; in general @em |
| 1300 |
basically, the implementation has to properly implement the normative |
| 1301 |
rules given throughout the standard. |
| 1302 |
Then we define what it means to conform to a Specialized Needs |
| 1303 |
Annex @em the implementation must support the core features plus the |
| 1304 |
features of that Annex. |
| 1305 |
Finally, we define what it means to @lquotes@;conform to the Standard@rquotes@; @em |
| 1306 |
this requires support for the core language, |
| 1307 |
and allows partial (but not conflicting) support for |
| 1308 |
the Specialized Needs Annexes. |
| 1309 |
@end{Discussion} |
| 1310 |
@begin(Itemize) |
| 1311 |
Translate and correctly execute |
| 1312 |
legal programs written in Ada, |
| 1313 |
provided that they are not so large as to exceed the capacity of |
| 1314 |
the implementation; |
| 1315 |
|
| 1316 |
Identify all programs or program units |
| 1317 |
that are so large as to exceed the capacity of |
| 1318 |
the implementation (or raise an appropriate |
| 1319 |
exception at run time); |
| 1320 |
@ImplDef{Capacity limitations of the implementation.} |
| 1321 |
|
| 1322 |
Identify all programs or program units that contain |
| 1323 |
errors whose detection is required by this |
| 1324 |
International Standard; |
| 1325 |
@begin{Discussion} |
| 1326 |
Note that we no longer use the term @lquotes@;rejection@rquotes@; of |
| 1327 |
programs or program units. |
| 1328 |
We require that programs or program units with errors or that |
| 1329 |
exceed some capacity limit be @lquotes@;identified@rquotes@;. |
| 1330 |
The way in which errors or capacity problems are reported is not |
| 1331 |
specified. |
| 1332 |
|
| 1333 |
An implementation is allowed to use standard error-recovery |
| 1334 |
techniques. |
| 1335 |
We do not disallow such techniques from being used across |
| 1336 |
@nt{compilation_unit} or @nt{compilation} boundaries. |
| 1337 |
|
| 1338 |
See also the @ImplReqTitle of @RefSecNum{Program Execution}, |
| 1339 |
which disallow the execution of illegal partitions. |
| 1340 |
|
| 1341 |
@end{Discussion} |
| 1342 |
|
| 1343 |
Supply all language-defined library units required by this |
| 1344 |
International Standard; |
| 1345 |
@begin{ImplNote} |
| 1346 |
An implementation cannot add to or modify the visible part of |
| 1347 |
a language-defined library unit, |
| 1348 |
except where such permission is explicitly granted, |
| 1349 |
unless such modifications are semantically neutral with respect |
| 1350 |
to the client compilation units of the library unit. |
| 1351 |
An implementation defines the contents of the private part and |
| 1352 |
body of language-defined library units. |
| 1353 |
|
| 1354 |
An implementation can add @nt{with_clause}s and @nt{use_clause}s, |
| 1355 |
since these modifications are semantically neutral to clients. |
| 1356 |
(The implementation might need @nt{with_clause}s in order to |
| 1357 |
implement the private part, for example.) |
| 1358 |
Similarly, an implementation can add a private part even in cases |
| 1359 |
where a private part is not shown in the standard. |
| 1360 |
Explicit declarations can be provided implicitly or by renaming, |
| 1361 |
provided the changes are semantically neutral. |
| 1362 |
|
| 1363 |
@Defn2{Term=[italics],Sec=(implementation-defined)} |
| 1364 |
Wherever in the standard the text of a language-defined library |
| 1365 |
unit contains an italicized phrase starting with |
| 1366 |
@lquotes@;@i{implementation-defined}@rquotes@;, the implementation's version |
| 1367 |
will replace that phrase with some implementation-defined text |
| 1368 |
that is syntactically legal at that place, and follows any other |
| 1369 |
applicable rules. |
| 1370 |
|
| 1371 |
Note that modifications are permitted, even if there are other tools |
| 1372 |
in the environment that can detect the changes (such as a program |
| 1373 |
library browser), so long as the modifications make no difference |
| 1374 |
with respect to the static or dynamic semantics of the resulting |
| 1375 |
programs, as defined by the standard. |
| 1376 |
@end{ImplNote} |
| 1377 |
|
| 1378 |
Contain no variations except |
| 1379 |
those explicitly permitted by this |
| 1380 |
International Standard, or those that are impossible or impractical |
| 1381 |
to avoid given the implementation's execution environment; |
| 1382 |
@ImplDef{Variations from the standard that are impractical to avoid |
| 1383 |
given the implementation's execution environment.} |
| 1384 |
@begin{Reason} |
| 1385 |
The @lquotes@;impossible or impractical@rquotes@; wording comes from AI-325. |
| 1386 |
It takes some judgement and common sense to interpret this. |
| 1387 |
Restricting compilation units to less than 4 lines is probably |
| 1388 |
unreasonable, whereas restricting them to less than 4 billion lines |
| 1389 |
is probably reasonable (at least given today's technology). |
| 1390 |
We do not know exactly where to draw the line, |
| 1391 |
so we have to make the rule vague. |
| 1392 |
@end{Reason} |
| 1393 |
|
| 1394 |
Specify all such variations in the manner prescribed |
| 1395 |
by this International Standard. |
| 1396 |
@end(Itemize) |
| 1397 |
|
| 1398 |
@begin{WideAbove} |
| 1399 |
@Leading@keepnext@Defn2{Term=[external effect], Sec=(of the execution of an Ada program)} |
| 1400 |
@Defn2{Term=[effect], Sec=(external)} |
| 1401 |
The @i(external effect) of the execution of an Ada program is |
| 1402 |
defined in terms of its interactions |
| 1403 |
with its external environment. |
| 1404 |
@Defn{external interaction} |
| 1405 |
The following are defined as @i(external interactions): |
| 1406 |
@end{WideAbove} |
| 1407 |
@begin(Itemize) |
| 1408 |
Any interaction with an external file |
| 1409 |
(see @RefSecNum(External Files and File Objects)); |
| 1410 |
|
| 1411 |
The execution of |
| 1412 |
certain @nt<code_statement>s |
| 1413 |
(see @RefSecNum{Machine Code Insertions}); |
| 1414 |
which @nt{code_statement}s cause external interactions |
| 1415 |
is implementation defined. |
| 1416 |
@ImplDef{Which @nt{code_statement}s cause external interactions.} |
| 1417 |
|
| 1418 |
Any call on an imported subprogram |
| 1419 |
(see @RefSecNum(Interface to Other Languages)), |
| 1420 |
including any parameters passed to it; |
| 1421 |
|
| 1422 |
Any result returned or exception |
| 1423 |
propagated from a main subprogram |
| 1424 |
(see @RefSecNum(Program Execution)) |
| 1425 |
or an exported subprogram |
| 1426 |
(see @RefSecNum(Interface to Other Languages)) to an external caller; |
| 1427 |
@begin{Discussion} |
| 1428 |
By @lquotes@;result returned@rquotes@; we mean to include function results |
| 1429 |
and values returned in [@key(in)] @key(out) parameters. |
| 1430 |
|
| 1431 |
@ChgRef{Version=[1],Kind=[Added],Ref=[8652/0094],ARef=[AI95-00119-01]} |
| 1432 |
@Chg{Version=[1],New=[The lack of a result from a program that does not terminate |
| 1433 |
is also included here.],Old=[]} |
| 1434 |
@end{Discussion} |
| 1435 |
|
| 1436 |
@Redundant[Any read or update of an atomic or volatile object |
| 1437 |
(see @RefSecNum(Shared Variable Control));] |
| 1438 |
|
| 1439 |
The values of imported and exported objects |
| 1440 |
(see @RefSecNum(Interface to Other Languages)) at the time |
| 1441 |
of any other interaction with the external environment. |
| 1442 |
@begin{Honest} |
| 1443 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0229-1]} |
| 1444 |
Also other uses of imported and exported entities, |
| 1445 |
as defined by the implementation, |
| 1446 |
if the implementation supports such @Chg{Version=[3],New=[importing or |
| 1447 |
exporting],Old=[@nt{pragma}s]}. |
| 1448 |
@end{Honest} |
| 1449 |
@end(Itemize) |
| 1450 |
|
| 1451 |
@begin{WideAbove} |
| 1452 |
A conforming implementation |
| 1453 |
of this International Standard shall produce for the |
| 1454 |
execution of a given Ada program |
| 1455 |
a set of interactions with the external environment whose |
| 1456 |
order and timing are consistent with the definitions and requirements of this |
| 1457 |
International Standard for the semantics of the given program. |
| 1458 |
@end{WideAbove} |
| 1459 |
@begin{Ramification} |
| 1460 |
There is no need to produce any of the @lquotes@;internal effects@rquotes@; |
| 1461 |
defined for the semantics of the program @em all of these |
| 1462 |
can be optimized away @em so long as an appropriate sequence |
| 1463 |
of external interactions is produced. |
| 1464 |
@end{Ramification} |
| 1465 |
@begin{Discussion} |
| 1466 |
See also @RefSecNum(Exceptions and Optimization) which specifies |
| 1467 |
various liberties associated with optimizations in |
| 1468 |
the presence of language-defined checks, |
| 1469 |
that could change the external effects that |
| 1470 |
might be produced. These alternative external effects |
| 1471 |
are still consistent with the standard, since |
| 1472 |
@RefSecNum(Exceptions and Optimization) is part of the standard. |
| 1473 |
|
| 1474 |
Note also that we only require @lquotes@;@i(an appropriate) sequence |
| 1475 |
of external interactions@rquotes@; rather than @lquotes@;@i(the same) sequence...@rquotes@; |
| 1476 |
An optimizer may cause a different sequence of external interactions |
| 1477 |
to be produced than would be produced without the optimizer, so |
| 1478 |
long as the new sequence still satisfies the requirements |
| 1479 |
of the standard. For example, optimization might affect |
| 1480 |
the relative rate of progress of two concurrent tasks, thereby |
| 1481 |
altering the order in which two external interactions occur. |
| 1482 |
|
| 1483 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 1484 |
Note that @Chg{Version=[2],New=[the Ada 83 RM],Old=[RM83]} explicitly |
| 1485 |
mentions the case of an @lquotes@;exact effect@rquotes@; |
| 1486 |
of a program, but since so few programs have their effects defined |
| 1487 |
that exactly, |
| 1488 |
we don't even mention this @lquotes@;special@rquotes@; case. In particular, |
| 1489 |
almost any program that uses floating point or tasking has to have |
| 1490 |
some level |
| 1491 |
of inexactness in the specification of its effects. And if one |
| 1492 |
includes aspects of the timing of the external interactions |
| 1493 |
in the external effect of the program (as is appropriate for a real-time |
| 1494 |
language), no @lquotes@;exact effect@rquotes@; can be specified. |
| 1495 |
For example, if two external interactions initiated by a single task |
| 1496 |
are separated by a @lquotes@;@key(delay) 1.0;@rquotes@; then the language rules |
| 1497 |
imply that the two external interactions have to be separated in time |
| 1498 |
by at least one second, as defined by the clock associated with |
| 1499 |
the @nt<delay_relative_statement>. This in turn implies that |
| 1500 |
the time at which an external interaction occurs is part of |
| 1501 |
the characterization of the external interaction, at least in |
| 1502 |
some cases, again making the specification of the required |
| 1503 |
@lquotes@;exact effect@rquotes@; impractical. |
| 1504 |
@end{Discussion} |
| 1505 |
|
| 1506 |
An implementation that conforms to this Standard shall support each |
| 1507 |
capability required by the core language as specified. |
| 1508 |
In addition, |
| 1509 |
an implementation that conforms to this Standard may conform to one |
| 1510 |
or more Specialized Needs Annexes (or to none). |
| 1511 |
Conformance to a Specialized Needs Annex means that each capability |
| 1512 |
required by the Annex is provided as specified. |
| 1513 |
@begin{Discussion} |
| 1514 |
The last sentence defines what it means to say that an |
| 1515 |
implementation conforms to a Specialized Needs Annex, namely, only |
| 1516 |
by supporting all capabilities required by the Annex. |
| 1517 |
@end{Discussion} |
| 1518 |
|
| 1519 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0229-1]} |
| 1520 |
An implementation conforming to this International Standard |
| 1521 |
may provide additional |
| 1522 |
@Chg{Version=[3],New=[aspects, ],Old=[]}attributes, library units, and pragmas. |
| 1523 |
However, it shall not provide any |
| 1524 |
@Chg{Version=[3],New=[aspect, ],Old=[]}attribute, |
| 1525 |
library unit, or pragma having the same name |
| 1526 |
as an @Chg{Version=[3],New=[aspect, ],Old=[]}attribute, library unit, |
| 1527 |
or pragma (respectively) |
| 1528 |
specified in a Specialized Needs Annex unless the provided construct |
| 1529 |
is either as specified in the Specialized Needs Annex or is more |
| 1530 |
limited in capability than that required by the Annex. |
| 1531 |
A program that attempts to use an unsupported capability of an Annex |
| 1532 |
shall either be identified by the implementation before run time or |
| 1533 |
shall raise an exception at run time. |
| 1534 |
@begin{Discussion} |
| 1535 |
The last sentence of the preceding paragraph defines what an |
| 1536 |
implementation is allowed to do when it does not "conform" to a |
| 1537 |
Specialized Needs Annex. |
| 1538 |
In particular, the sentence forbids implementations from providing |
| 1539 |
a construct with the same name as a corresponding construct in a |
| 1540 |
Specialized Needs Annex but with a different syntax |
| 1541 |
(e.g., an extended syntax) or quite different semantics. |
| 1542 |
The phrase concerning "more limited in capability" is intended to |
| 1543 |
give permission to provide a partial implementation, such as not |
| 1544 |
implementing a subprogram in a package or having a restriction not |
| 1545 |
permitted by an implementation that conforms to the Annex. |
| 1546 |
For example, a partial implementation of the package Ada.Decimal |
| 1547 |
might have Decimal.Max_Decimal_Digits as 15 (rather than the |
| 1548 |
required 18). |
| 1549 |
This allows a partial implementation to grow to a fully conforming |
| 1550 |
implementation. |
| 1551 |
|
| 1552 |
A restricted implementation might be restricted by not providing |
| 1553 |
some subprograms specified in one of the packages defined by an |
| 1554 |
Annex. |
| 1555 |
In this case, a program that tries to use the missing subprogram |
| 1556 |
will usually fail to compile. |
| 1557 |
Alternatively, the implementation might declare the subprogram as |
| 1558 |
abstract, so it cannot be called. |
| 1559 |
Alternatively, a subprogram body might be implemented just to raise |
| 1560 |
Program_Error. |
| 1561 |
The advantage of this approach is that a program to be run under a |
| 1562 |
fully conforming Annex implementation can be checked syntactically |
| 1563 |
and semantically under an implementation that only partially |
| 1564 |
supports the Annex. |
| 1565 |
Finally, an implementation might provide a package declaration |
| 1566 |
without the corresponding body, so that programs can be compiled, |
| 1567 |
but partitions cannot be built and executed. |
| 1568 |
|
| 1569 |
To ensure against wrong answers being delivered by a partial |
| 1570 |
implementation, implementers are required to raise an exception |
| 1571 |
when a program attempts to use an unsupported capability and this |
| 1572 |
can be detected only at run time. |
| 1573 |
For example, a partial implementation of Ada.Decimal might require |
| 1574 |
the length of the Currency string to be 1, and hence, an |
| 1575 |
exception would be raised if a subprogram were called in the |
| 1576 |
package Edited_Output with a length greater than 1. |
| 1577 |
@end{Discussion} |
| 1578 |
@end{ImplReq} |
| 1579 |
|
| 1580 |
@begin{DocReq} |
| 1581 |
@Defn{implementation defined} |
| 1582 |
@Defn{unspecified} |
| 1583 |
@Defn{specified (not!)} |
| 1584 |
@IndexSee{Term=[implementation-dependent],See=(unspecified)} |
| 1585 |
@Defn{documentation (required of an implementation)} |
| 1586 |
Certain aspects of the semantics are defined to be either |
| 1587 |
@i{implementation defined} or @i{unspecified}. |
| 1588 |
In such cases, the set of possible effects is specified, and |
| 1589 |
the implementation may choose any effect in the set. |
| 1590 |
Implementations shall document their behavior in |
| 1591 |
implementation-defined situations, but documentation is not required |
| 1592 |
for unspecified situations. |
| 1593 |
The implementation-defined characteristics are summarized in |
| 1594 |
@RefSecNum{Implementation-Defined Characteristics}. |
| 1595 |
@begin{Discussion} |
| 1596 |
We used to use the term @lquotes@;implementation dependent@rquotes@; |
| 1597 |
instead of @lquotes@;unspecified@rquotes@;. |
| 1598 |
However, that sounded too much like @lquotes@;implementation defined@rquotes@;. |
| 1599 |
Furthermore, the term @lquotes@;unspecified@rquotes@; is used in the ANSI C and |
| 1600 |
POSIX standards for this purpose, so that is another advantage. |
| 1601 |
We also use @lquotes@;not specified@rquotes@; and @lquotes@;not specified by the language@rquotes@; |
| 1602 |
as synonyms for @lquotes@;unspecified.@rquotes@; |
| 1603 |
The documentation requirement is the only difference between |
| 1604 |
implementation defined and unspecified. |
| 1605 |
|
| 1606 |
Note that the @lquotes@;set of possible effects@rquotes@; can be @lquotes@;all imaginable |
| 1607 |
effects@rquotes@;, as is the case with erroneous execution. |
| 1608 |
@end{Discussion} |
| 1609 |
|
| 1610 |
The implementation may choose to document implementation-defined behavior |
| 1611 |
either by documenting what happens in general, |
| 1612 |
or by providing some mechanism for the user to determine what |
| 1613 |
happens in a particular case. |
| 1614 |
@begin(Discussion) |
| 1615 |
For example, if the standard says that library unit elaboration order |
| 1616 |
is implementation defined, |
| 1617 |
the implementation might describe (in its user's manual) |
| 1618 |
the algorithm it uses to determine the elaboration order. |
| 1619 |
On the other hand, the implementation might provide a |
| 1620 |
command that produces |
| 1621 |
a description of the elaboration order for a partition upon request |
| 1622 |
from the user. |
| 1623 |
It is also acceptable to provide cross references to existing |
| 1624 |
documentation (for example, a hardware manual), where appropriate. |
| 1625 |
|
| 1626 |
Note that dependence of a program on implementation-defined or |
| 1627 |
unspecified functionality is not defined to be an error; |
| 1628 |
it might cause the program to be less portable, however. |
| 1629 |
@end(Discussion) |
| 1630 |
@ChgDocReq{Version=[2],Kind=[AddedNormal],Text=[@ChgAdded{Version=[2],Text=[ |
| 1631 |
The behavior of implementations in implementation-defined situations |
| 1632 |
shall be documented @em see @RefSec{Implementation-Defined Characteristics} |
| 1633 |
for a listing.]}]} |
| 1634 |
@end{DocReq} |
| 1635 |
|
| 1636 |
@begin{ImplAdvice} |
| 1637 |
@Defn2{Term=[Program_Error],Sec=(raised by failure of run-time check)} |
| 1638 |
If an implementation detects the use of an unsupported |
| 1639 |
Specialized Needs Annex feature at run time, |
| 1640 |
it should raise Program_Error if feasible. |
| 1641 |
@ChgImplAdvice{Version=[2],Kind=[Added],Text=[@ChgAdded{Version=[2], |
| 1642 |
Text=[Program_Error should be raised when an unsupported |
| 1643 |
Specialized Needs Annex feature is used at run time.]}]} |
| 1644 |
@begin{Reason} |
| 1645 |
The reason we don't @i{require} Program_Error is that there are |
| 1646 |
situations where other exceptions might make sense. |
| 1647 |
For example, if the Real Time Systems Annex requires |
| 1648 |
that the range of System.Priority include at least 30 values, |
| 1649 |
an implementation could conform to the Standard |
| 1650 |
(but not to the Annex) |
| 1651 |
if it supported only 12 values. |
| 1652 |
Since the rules of the language require Constraint_Error to be raised |
| 1653 |
for out-of-range values, |
| 1654 |
we cannot require Program_Error to be raised instead. |
| 1655 |
@end{Reason} |
| 1656 |
|
| 1657 |
If an implementation wishes to provide implementation-defined |
| 1658 |
extensions to the functionality of a language-defined library unit, |
| 1659 |
it should normally do so by adding children to the library unit. |
| 1660 |
@ChgImplAdvice{Version=[2],Kind=[Added],Text=[@ChgAdded{Version=[2], |
| 1661 |
Text=[Implementation-defined extensions to the functionality of a |
| 1662 |
language-defined library unit should be provided by adding children |
| 1663 |
to the library unit.]}]} |
| 1664 |
@begin(ImplNote) |
| 1665 |
If an implementation has support code |
| 1666 |
(@lquotes@;run-time system code@rquotes@;) |
| 1667 |
that is needed for the execution of user-defined code, |
| 1668 |
it can put that support code in child packages of System. |
| 1669 |
Otherwise, it has to use some trick to avoid polluting the user's |
| 1670 |
namespace. |
| 1671 |
It is important that such tricks not be available |
| 1672 |
to user-defined code |
| 1673 |
(not in the standard mode, at least) |
| 1674 |
@em that would defeat the purpose. |
| 1675 |
@end(ImplNote) |
| 1676 |
@end{ImplAdvice} |
| 1677 |
|
| 1678 |
@begin{Notes} |
| 1679 |
The above requirements imply that an implementation conforming |
| 1680 |
to this Standard may support some of the capabilities required by a |
| 1681 |
Specialized Needs Annex without supporting all required |
| 1682 |
capabilities. |
| 1683 |
@begin{Discussion} |
| 1684 |
A conforming implementation can partially support a |
| 1685 |
Specialized Needs Annex. |
| 1686 |
Such an implementation does not conform to the Annex, |
| 1687 |
but it does conform to the Standard. |
| 1688 |
@end{Discussion} |
| 1689 |
@end{Notes} |
| 1690 |
|
| 1691 |
@LabeledSubClause{Method of Description and Syntax Notation} |
| 1692 |
|
| 1693 |
@begin{Intro} |
| 1694 |
The form of an Ada program is described by means of a context-free |
| 1695 |
syntax together with context-dependent requirements expressed by |
| 1696 |
narrative rules. |
| 1697 |
|
| 1698 |
The meaning of Ada programs is described by means of narrative |
| 1699 |
rules defining both the effects of each construct and the composition |
| 1700 |
rules for constructs. |
| 1701 |
|
| 1702 |
@Leading@keepnext@;@Defn2{Term=[syntax], Sec=(notation)} |
| 1703 |
@Defn2{Term=[grammar], Sec=(notation)} |
| 1704 |
@Defn2{Term=[context free grammar], Sec=(notation)} |
| 1705 |
@Defn2{Term=[BNF (Backus-Naur Form)], Sec=(notation)} |
| 1706 |
@Defn2{Term=[Backus-Naur Form (BNF)], Sec=(notation)} |
| 1707 |
The context-free syntax of the language is described using a simple variant |
| 1708 |
of Backus-Naur Form. In particular: |
| 1709 |
@begin(Itemize) |
| 1710 |
@leading@keepnext@;Lower case words in a sans-serif font, |
| 1711 |
some containing embedded underlines, are used to |
| 1712 |
denote syntactic categories, for example: |
| 1713 |
@begin(Display) |
| 1714 |
@nt<case_statement> |
| 1715 |
@end(Display) |
| 1716 |
|
| 1717 |
@leading@keepnext@;Boldface words are used to denote reserved words, for example: |
| 1718 |
@begin(Display) |
| 1719 |
@key(array) |
| 1720 |
@end(Display) |
| 1721 |
|
| 1722 |
@leading@keepnext@;Square brackets enclose optional items. Thus the two following |
| 1723 |
rules are equivalent. |
| 1724 |
@begin(Display) |
| 1725 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00433-01]}@Chg{Version=[2],New=[@nt<simple_return_statement>],Old=[@nt<return_statement>]} ::= @key(return) [@nt<expression>]; |
| 1726 |
@Chg{Version=[2],New=[@nt<simple_return_statement>],Old=[@nt<return_statement>]} ::= @key(return); | @key(return) @nt<expression>; |
| 1727 |
@end(Display) |
| 1728 |
|
| 1729 |
@leading@keepnext@;Curly brackets enclose a repeated item. The item may appear zero |
| 1730 |
or more times; the repetitions occur from left to right as with an |
| 1731 |
equivalent left-recursive rule. Thus the two following rules are |
| 1732 |
equivalent. |
| 1733 |
@begin(Display) |
| 1734 |
@nt<term> ::= @nt<factor> {@nt<multiplying_operator> @nt<factor>} |
| 1735 |
@nt<term> ::= @nt<factor> | @nt<term> @nt<multiplying_operator> @nt<factor> |
| 1736 |
@end(Display) |
| 1737 |
|
| 1738 |
@leading@keepnext@;A vertical line separates alternative items unless it occurs |
| 1739 |
immediately after an opening curly bracket, |
| 1740 |
in which case it stands for itself: |
| 1741 |
@begin(Display) |
| 1742 |
@nt<constraint> ::= @nt<scalar_constraint> | @nt<composite_constraint> |
| 1743 |
@nt<discrete_choice_list> ::= @nt<discrete_choice> {| @nt<discrete_choice>} |
| 1744 |
@end(Display) |
| 1745 |
|
| 1746 |
@Defn2{Term=[italics],Sec=(syntax rules)} |
| 1747 |
If the name of any syntactic category starts with an italicized |
| 1748 |
part, it is equivalent to the category name without the italicized |
| 1749 |
part. The italicized part is intended to convey some semantic |
| 1750 |
information. For example @i(subtype_)@nt<name> and |
| 1751 |
@i(task_)@nt<name> are both equivalent to @nt<name> alone. |
| 1752 |
@end(Itemize) |
| 1753 |
@begin(Discussion) |
| 1754 |
@Defn{LR(1)} |
| 1755 |
@Defn{ambiguous grammar} |
| 1756 |
@Defn2{Term=[grammar],Sec=(resolution of ambiguity)} |
| 1757 |
@Defn2{Term=[grammar],Sec=(ambiguous)} |
| 1758 |
The grammar given in @Chg{Version=[2],New=[this International Standard], |
| 1759 |
old=[the RM95]} is not LR(1). |
| 1760 |
In fact, it is ambiguous; the ambiguities are resolved |
| 1761 |
by the overload resolution rules |
| 1762 |
(see @RefSecNum{The Context of Overload Resolution}). |
| 1763 |
|
| 1764 |
We often use @lquotes@;if@rquotes@; to mean @lquotes@;if and only if@rquotes@; in definitions. |
| 1765 |
For example, if we define @lquotes@;photogenic@rquotes@; by saying, |
| 1766 |
@lquotes@;A type is photogenic if it has the following properties...,@rquotes@; |
| 1767 |
we mean that a type is photogenic if @i{and only if} |
| 1768 |
it has those properties. |
| 1769 |
It is usually clear from the context, |
| 1770 |
and adding the @lquotes@;and only if@rquotes@; seems too cumbersome. |
| 1771 |
|
| 1772 |
When we say, for example, @lquotes@;a @nt{declarative_item} of a |
| 1773 |
@nt{declarative_part}@rquotes@;, we are talking about a @nt{declarative_item} |
| 1774 |
immediately within that @nt{declarative_part}. When we say @lquotes@;a |
| 1775 |
@nt{declarative_item} in, or within, a @nt{declarative_part}@rquotes@;, we are |
| 1776 |
talking about a @nt{declarative_item} anywhere in the |
| 1777 |
@nt{declarative_part}, possibly deeply nested within other |
| 1778 |
@nt{declarative_part}s. (This notation doesn't work very well for |
| 1779 |
@nt{name}s, since the name @lquotes@;of@rquotes@; something also has another meaning.) |
| 1780 |
|
| 1781 |
When we refer to the name of a language-defined |
| 1782 |
entity (for example, Duration), |
| 1783 |
we mean the language-defined entity even in programs where the declaration |
| 1784 |
of the language-defined entity is hidden by another declaration. |
| 1785 |
For example, when we say that the expected type for the @nt<expression> |
| 1786 |
of a @nt<delay_relative_statement> is Duration, we mean the language-defined |
| 1787 |
type Duration that is declared in Standard, not some type |
| 1788 |
Duration the user might have declared. |
| 1789 |
@end(Discussion) |
| 1790 |
|
| 1791 |
@begin{WideAbove} |
| 1792 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00285-01]} |
| 1793 |
@ChgRef{Version=[3],Kind=[RevisedAdded],ARef=[AI05-0004-1],ARef=[AI05-0262-1]} |
| 1794 |
@ChgAdded{Version=[2],Text=[The delimiters, compound delimiters, reserved words, and |
| 1795 |
@nt{numeric_literal}s are exclusively made of the |
| 1796 |
characters whose code @Chg{Version=[3],New=[point],Old=[position]} is |
| 1797 |
between 16#20# and 16#7E#, inclusively. |
| 1798 |
The special characters for which names are defined in this |
| 1799 |
International Standard (see @RefSecNum{Character Set}) belong to the same range. |
| 1800 |
@Redundant[For example, the character E in the definition of @Chg{Version=[3], |
| 1801 |
New=[@nt{exponent}],Old=[exponent]} is the |
| 1802 |
character whose name is @lquotes@;LATIN CAPITAL LETTER E@rquotes@;, not |
| 1803 |
@lquotes@;GREEK CAPITAL LETTER EPSILON@rquotes@;.]]} |
| 1804 |
@begin{Discussion} |
| 1805 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 1806 |
@ChgAdded{Version=[2],Text=[This just means that programs can be written in plain |
| 1807 |
ASCII characters; no characters outside of the 7-bit range are required.]} |
| 1808 |
@end{Discussion} |
| 1809 |
|
| 1810 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00395-01]} |
| 1811 |
@ChgRef{Version=[3],Kind=[RevisedAdded],ARef=[AI05-0227-1],ARef=[AI05-0299-1]} |
| 1812 |
@ChgAdded{Version=[2],Text=[When this International Standard mentions the |
| 1813 |
conversion of some character or sequence of characters to upper case, it means |
| 1814 |
the character or sequence of characters obtained by using |
| 1815 |
@Chg{Version=[3],New=[simple upper case mapping],Old=[locale-independent |
| 1816 |
full case folding]}, as defined by documents referenced in the note in |
| 1817 |
@Chg{Version=[3],New=[Clause],Old=[section]} 1 |
| 1818 |
of ISO/IEC 10646:@Chg{Version=[3],New=[2011],Old=[2003]}.]} |
| 1819 |
@begin{Discussion} |
| 1820 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 1821 |
@ChgRef{Version=[3],Kind=[DeletedAdded]} |
| 1822 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Unless otherwise |
| 1823 |
specified for sequences of characters, case folding is applied to the |
| 1824 |
sequence, not to individual characters. It sometimes can make a |
| 1825 |
difference.]}]} |
| 1826 |
@end{Discussion} |
| 1827 |
@end{WideAbove} |
| 1828 |
|
| 1829 |
@begin{WideAbove} |
| 1830 |
@Defn{syntactic category} |
| 1831 |
A @i{syntactic category} is |
| 1832 |
a nonterminal in the grammar defined in BNF under @lquotes@;@SyntaxTitle.@rquotes@; |
| 1833 |
Names of syntactic categories are set in a different font, |
| 1834 |
@ntf{like_this}. |
| 1835 |
@end{WideAbove} |
| 1836 |
|
| 1837 |
@ToGlossaryAlso{Term=<Construct>, |
| 1838 |
Text=<A @i(construct) is a piece of text |
| 1839 |
(explicit or implicit) that is an instance of a syntactic category |
| 1840 |
defined under @lquotes@;@SyntaxTitle@rquotes@;.>} |
| 1841 |
@begin{Ramification} |
| 1842 |
For example, an @nt{expression} is a construct. |
| 1843 |
A declaration is a construct, |
| 1844 |
whereas the thing declared by a declaration is an @lquotes@;entity.@rquotes@; |
| 1845 |
@end{Ramification} |
| 1846 |
@begin{Discussion} |
| 1847 |
@lquotes@;Explicit@rquotes@; and @lquotes@;implicit@rquotes@; don't mean exactly what you might think |
| 1848 |
they mean: The text of an instance of a generic is |
| 1849 |
considered explicit, even though it does not appear explicitly (in |
| 1850 |
the nontechnical sense) in the program text, |
| 1851 |
and even though its meaning is not defined entirely in terms of that |
| 1852 |
text. |
| 1853 |
@end{Discussion} |
| 1854 |
|
| 1855 |
@Defn2{term=<constituent>, Sec=<of a construct>} |
| 1856 |
A @i{constituent} of a construct is the construct itself, |
| 1857 |
or any construct appearing within it. |
| 1858 |
|
| 1859 |
@Defn{arbitrary order} |
| 1860 |
Whenever the run-time semantics |
| 1861 |
defines certain actions to happen in an @i{arbitrary order}, |
| 1862 |
this means that the implementation shall arrange for these actions |
| 1863 |
to occur in a way that is equivalent to some sequential order, |
| 1864 |
following the rules that result from that sequential order. |
| 1865 |
When evaluations are defined to happen in an arbitrary order, |
| 1866 |
with conversion of the results to some subtypes, |
| 1867 |
or with some run-time checks, |
| 1868 |
the evaluations, conversions, and checks may be arbitrarily |
| 1869 |
interspersed, so long as each expression is evaluated before converting |
| 1870 |
or checking its value. |
| 1871 |
@PDefn2{Term=[type conversion],Sec=(arbitrary order)} |
| 1872 |
@PDefn2{Term=[conversion],Sec=(arbitrary order)} |
| 1873 |
@Redundant[Note that the effect of a program can depend on the |
| 1874 |
order chosen by the implementation. |
| 1875 |
This can happen, for example, |
| 1876 |
if two actual parameters of a given call have side effects.] |
| 1877 |
@begin{Discussion} |
| 1878 |
Programs will be more portable if their external effect does not |
| 1879 |
depend on the particular order chosen by an implementation. |
| 1880 |
@end{Discussion} |
| 1881 |
@begin{Ramification} |
| 1882 |
Additional reordering permissions are given in |
| 1883 |
@RefSec(Exceptions and Optimization). |
| 1884 |
|
| 1885 |
There is no requirement that the implementation always choose |
| 1886 |
the same order in a given kind of situation. In fact, the |
| 1887 |
implementation is allowed to choose a different order for two |
| 1888 |
different executions of the same construct. |
| 1889 |
However, we expect most implementations will behave in a relatively |
| 1890 |
predictable manner in most situations. |
| 1891 |
@end{Ramification} |
| 1892 |
@begin{Reason} |
| 1893 |
The @lquotes@;sequential order@rquotes@; wording is intended to allow the programmer |
| 1894 |
to rely on @lquotes@;benign@rquotes@; side effects. |
| 1895 |
For example, if F is a function that returns a unique integer by |
| 1896 |
incrementing some global and returning the result, |
| 1897 |
a call such as P(F, F) is OK if the programmer cares only |
| 1898 |
that the two results of F are unique; |
| 1899 |
the two calls of F cannot be executed in parallel, |
| 1900 |
unless the compiler can prove that parallel execution is |
| 1901 |
equivalent to some sequential order. |
| 1902 |
@end{Reason} |
| 1903 |
@end{Intro} |
| 1904 |
|
| 1905 |
@NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM} |
| 1906 |
|
| 1907 |
@begin{Notes} |
| 1908 |
The syntax rules describing structured constructs are presented in a |
| 1909 |
form that corresponds to the recommended paragraphing. For example, an |
| 1910 |
@nt{if_statement} is defined as: |
| 1911 |
@begin(Example) |
| 1912 |
@nt<if_statement> ::= |
| 1913 |
@key(if) @nt<condition> @key(then) |
| 1914 |
@nt<sequence_of_statements> |
| 1915 |
{@key(elsif) @nt<condition> @key(then) |
| 1916 |
@nt<sequence_of_statements>} |
| 1917 |
[@key(else) |
| 1918 |
@nt<sequence_of_statements>] |
| 1919 |
@key(end if); |
| 1920 |
@end(Example) |
| 1921 |
|
| 1922 |
The line breaks and indentation in the syntax rules indicate the |
| 1923 |
recommended line breaks and indentation in the corresponding constructs. |
| 1924 |
The preferred places for other line breaks are after semicolons. |
| 1925 |
@end{Notes} |
| 1926 |
|
| 1927 |
@begin{DiffWord95} |
| 1928 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00285-01]} |
| 1929 |
@ChgAdded{Version=[2],Text=[We now explicitly say that the lexical elements |
| 1930 |
of the language (with a few exceptions) are made up of characters in the |
| 1931 |
lower half of the Latin-1 character set. This is needed to avoid confusion |
| 1932 |
given the new capability to use most ISO 10646 characters in identifiers and |
| 1933 |
strings.]} |
| 1934 |
|
| 1935 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00395-01]} |
| 1936 |
@ChgAdded{Version=[2],Text=[We now explicitly define what the Standard means |
| 1937 |
by upper case, as there are many possibilities for ISO 10646 characters.]} |
| 1938 |
|
| 1939 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00433-01]} |
| 1940 |
@ChgAdded{Version=[2],Text=[The example for square brackets has been changed |
| 1941 |
as there is no longer a @ntf{return_statement} syntax rule.]} |
| 1942 |
@end{DiffWord95} |
| 1943 |
|
| 1944 |
@begin{DiffWord2005} |
| 1945 |
@ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0227-1]} |
| 1946 |
@ChgAdded{Version=[3],Text=[@b<Correction:> Upper case is defined by |
| 1947 |
"simple upper case mapping", because "full case folding" is a mapping |
| 1948 |
(mostly) to lower case.]} |
| 1949 |
@end{DiffWord2005} |
| 1950 |
|
| 1951 |
|
| 1952 |
|
| 1953 |
@LabeledSubClause{Classification of Errors} |
| 1954 |
|
| 1955 |
@begin{ImplReq} |
| 1956 |
@Leading@Keepnext@;The language definition classifies errors into several |
| 1957 |
different categories: |
| 1958 |
@begin(Itemize) |
| 1959 |
@Keepnext@;Errors that are required to be detected prior to run time by every |
| 1960 |
Ada implementation; |
| 1961 |
|
| 1962 |
@NoPrefix@;These errors correspond to any violation of a rule given in this |
| 1963 |
International Standard, other than those listed below. |
| 1964 |
In particular, violation of any rule that uses the |
| 1965 |
terms shall, allowed, permitted, legal, or illegal belongs to this |
| 1966 |
category. Any program that contains such an error is not a legal |
| 1967 |
Ada program; on the other hand, the fact that a program is legal |
| 1968 |
does not mean, @i(per se), that the program is free from other |
| 1969 |
forms of error. |
| 1970 |
|
| 1971 |
@NoPrefix@Defn{compile-time error} |
| 1972 |
@Defn2{Term=[error], Sec=(compile-time)} |
| 1973 |
@IndexSee{Term=[link-time error],See=(post-compilation error)} |
| 1974 |
@Defn2{Term=[error], Sec=(link-time)} |
| 1975 |
The rules are further classified as either compile time rules, or |
| 1976 |
post compilation rules, depending on whether a violation has to be |
| 1977 |
detected at the time a compilation unit is submitted to |
| 1978 |
the compiler, |
| 1979 |
or may be postponed until the time a compilation unit is |
| 1980 |
incorporated into a partition of a program. |
| 1981 |
@begin{Ramification} |
| 1982 |
See, for example, @RefSec(Subunits of Compilation Units), |
| 1983 |
for some errors that are detected only after compilation. |
| 1984 |
Implementations are allowed, but not required, to detect post |
| 1985 |
compilation rules at compile time when possible. |
| 1986 |
@end{Ramification} |
| 1987 |
|
| 1988 |
@Keepnext@;Errors that are required to be detected at run time by the |
| 1989 |
execution of an Ada program; |
| 1990 |
|
| 1991 |
@NoPrefix@Defn{run-time error} |
| 1992 |
@Defn2{Term=[error], Sec=(run-time)} |
| 1993 |
The corresponding error situations are associated with the names of |
| 1994 |
the predefined exceptions. Every Ada compiler is required to |
| 1995 |
generate code that raises the corresponding exception if such an |
| 1996 |
error situation arises during program execution. |
| 1997 |
@Redundant[If such an error situation is certain to arise in every |
| 1998 |
execution of a construct, then an implementation is allowed |
| 1999 |
(although not required) to report this fact at compilation time.] |
| 2000 |
|
| 2001 |
|
| 2002 |
@Keepnext@;Bounded errors; |
| 2003 |
|
| 2004 |
@NoPrefix@;The language rules define certain kinds of errors that need not be |
| 2005 |
detected either prior to or during run time, but if not detected, |
| 2006 |
the range of possible effects shall be bounded. |
| 2007 |
@Defn{bounded error} |
| 2008 |
The errors of this category are called @i{bounded errors}. |
| 2009 |
@Defn2{Term=[Program_Error],Sec=(raised by failure of run-time check)} |
| 2010 |
The possible effects of a given bounded error are specified for |
| 2011 |
each such error, but in any case one possible effect of a bounded |
| 2012 |
error is the raising of the exception Program_Error. |
| 2013 |
|
| 2014 |
@Keepnext@;Erroneous execution. |
| 2015 |
|
| 2016 |
@NoPrefix@Defn{erroneous execution} |
| 2017 |
In addition to bounded errors, the language rules define certain |
| 2018 |
kinds of errors as leading to @i{erroneous execution}. Like bounded |
| 2019 |
errors, the implementation need not detect such errors either prior |
| 2020 |
to or during run time. Unlike bounded errors, there is no |
| 2021 |
language-specified bound on the possible effect of erroneous |
| 2022 |
execution; the effect is in general not predictable. |
| 2023 |
@begin{Ramification} |
| 2024 |
Executions are erroneous, not programs or parts of programs. |
| 2025 |
Once something erroneous happens, the execution of the entire program |
| 2026 |
is erroneous from that point on, and potentially before given |
| 2027 |
possible reorderings permitted by |
| 2028 |
@RefSecNum(Exceptions and Optimization) and elsewhere. |
| 2029 |
We cannot limit it to just one partition, |
| 2030 |
since partitions are not required to live in separate address spaces. |
| 2031 |
(But implementations are encouraged to limit it as much as possible.) |
| 2032 |
|
| 2033 |
Suppose a program contains a pair of things that will be executed @lquotes@;in |
| 2034 |
an arbitrary order.@rquotes@; |
| 2035 |
It is possible that one order will result in something sensible, whereas |
| 2036 |
the other order will result in erroneous execution. |
| 2037 |
If the implementation happens to choose the first order, |
| 2038 |
then the execution is not erroneous. |
| 2039 |
This may seem odd, but it is not harmful. |
| 2040 |
|
| 2041 |
Saying that something is erroneous is semantically |
| 2042 |
equivalent to saying that the behavior is unspecified. |
| 2043 |
However, @lquotes@;erroneous@rquotes@; has a slightly more disapproving |
| 2044 |
flavor. |
| 2045 |
@end{Ramification} |
| 2046 |
|
| 2047 |
@end(Itemize) |
| 2048 |
@end{ImplReq} |
| 2049 |
|
| 2050 |
@begin{ImplPerm} |
| 2051 |
@Redundant[@Defn2{Term={mode of operation}, Sec=(nonstandard)} |
| 2052 |
@Defn{nonstandard mode}An implementation may provide |
| 2053 |
@i(nonstandard modes) of operation. |
| 2054 |
Typically these modes would be selected by a @nt<pragma> or by a command line |
| 2055 |
switch when the compiler is invoked. When operating in |
| 2056 |
a nonstandard mode, the implementation may reject @nt<compilation_unit>s |
| 2057 |
that do not conform to additional requirements associated |
| 2058 |
with the mode, such as an excessive number of warnings or violation |
| 2059 |
of coding style guidelines. Similarly, in a nonstandard mode, |
| 2060 |
the implementation may apply special optimizations or alternative |
| 2061 |
algorithms that are only meaningful for programs that |
| 2062 |
satisfy certain criteria specified by the implementation. |
| 2063 |
@Defn2{Term={mode of operation}, Sec=(standard)} |
| 2064 |
@Defn{standard mode} |
| 2065 |
In any case, an implementation shall support a @i(standard) mode that |
| 2066 |
conforms to the requirements of this International Standard; in particular, in the standard |
| 2067 |
mode, all legal @nt<compilation_unit>s shall be accepted.] |
| 2068 |
@begin{Discussion} |
| 2069 |
These permissions are designed to authorize explicitly the |
| 2070 |
support for alternative modes. Of course, nothing we say can |
| 2071 |
prevent them anyway, but this (redundant) paragraph is designed |
| 2072 |
to indicate that such alternative modes are in some sense @lquotes@;approved@rquotes@; |
| 2073 |
and even encouraged where they serve the specialized needs of |
| 2074 |
a given user community, so long as the standard mode, designed |
| 2075 |
to foster maximum portability, is always available. |
| 2076 |
@end{Discussion} |
| 2077 |
@end{ImplPerm} |
| 2078 |
|
| 2079 |
@begin{ImplAdvice} |
| 2080 |
@Defn2{Term=[Program_Error],Sec=(raised by failure of run-time check)} |
| 2081 |
If an implementation detects a bounded error or erroneous execution, |
| 2082 |
it should raise Program_Error. |
| 2083 |
@ChgImplAdvice{Version=[2],Kind=[Added],Text=[@ChgAdded{Version=[2], |
| 2084 |
Text=[If a bounded error or erroneous execution is detected, Program_Error |
| 2085 |
should be raised.]}]} |
| 2086 |
@end{ImplAdvice} |
| 2087 |
|
| 2088 |
@begin{DiffWord83} |
| 2089 |
Some situations that are erroneous in Ada 83 are no longer errors |
| 2090 |
at all. |
| 2091 |
For example, depending on the parameter passing mechanism when |
| 2092 |
unspecified is possibly nonportable, but not erroneous. |
| 2093 |
|
| 2094 |
Other situations that are erroneous in Ada 83 are changed |
| 2095 |
to be bounded errors. |
| 2096 |
In particular, evaluating an uninitialized scalar variable is |
| 2097 |
a bounded error. |
| 2098 |
@Defn2{Term=[Program_Error],Sec=(raised by failure of run-time check)} |
| 2099 |
The possible results are to raise Program_Error (as always), or to |
| 2100 |
produce a machine-representable value (which might not be in the |
| 2101 |
subtype of the variable). |
| 2102 |
@Defn2{Term=[Constraint_Error],Sec=(raised by failure of run-time check)} |
| 2103 |
Violating a Range_Check or Overflow_Check raises |
| 2104 |
Constraint_Error, even if the value came from an uninitialized |
| 2105 |
variable. |
| 2106 |
This means that optimizers can no longer |
| 2107 |
@lquotes@;assume@rquotes@; that all variables are initialized within their subtype's |
| 2108 |
range. |
| 2109 |
Violating a check that is suppressed remains erroneous. |
| 2110 |
|
| 2111 |
The @lquotes@;incorrect order dependences@rquotes@; category of errors is removed. |
| 2112 |
All such situations are simply considered potential nonportabilities. |
| 2113 |
This category was removed due to the difficulty of defining |
| 2114 |
what it means for two executions to have a @lquotes@;different effect.@rquotes@; |
| 2115 |
For example, if a function with a side effect is called twice in a single |
| 2116 |
expression, it is not in principle possible for the compiler to |
| 2117 |
decide whether the correctness of the resulting program depends on the order |
| 2118 |
of execution of the two function calls. A compile time warning |
| 2119 |
might be appropriate, but raising of Program_Error at |
| 2120 |
run time would not be. |
| 2121 |
@end{DiffWord83} |
| 2122 |
|
| 2123 |
@LabeledClause{Normative References} |
| 2124 |
|
| 2125 |
@begin{Intro} |
| 2126 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 2127 |
@Defn{references} |
| 2128 |
@Defn{bibliography} |
| 2129 |
The following @Chg{Version=[3],New=[documents, in whole or in part, are |
| 2130 |
normatively referenced in this document and are indispensable for its |
| 2131 |
application. For dated references, only the edition cited applies. For undated |
| 2132 |
references, the latest edition of the referenced document (including any |
| 2133 |
amendments) applies.],Old=[standards contain provisions which, |
| 2134 |
through reference in this text, constitute provisions of this International |
| 2135 |
Standard. At the time of publication, the editions indicated were valid. All |
| 2136 |
standards are subject to revision, and parties to agreements based on this |
| 2137 |
International Standard are encouraged to investigate the possibility of applying |
| 2138 |
the most recent editions of the standards indicated below. Members of IEC and |
| 2139 |
ISO maintain registers of currently valid International Standards.]} |
| 2140 |
|
| 2141 |
@ChgRef{Version=[3],Kind=[Added],ARef=[AI05-0127-2],ARef=[AI05-0299-1]} |
| 2142 |
@ChgAdded{Version=[3],Text=[@Defn{ISO 639-3:2007} |
| 2143 |
@Defn{639-3:2007, ISO standard} |
| 2144 |
@Defn{Language code standard} |
| 2145 |
ISO 639-3:2007, @i{Codes for the representation of names of languages @em Part |
| 2146 |
3: Alpha-3 code for comprehensive coverage of languages}.]} |
| 2147 |
|
| 2148 |
@Defn{ISO/IEC 646:1991} |
| 2149 |
@Defn{646:1991, ISO/IEC standard} |
| 2150 |
@Defn2{Term=[character set standard],Sec=(7-bit)} |
| 2151 |
ISO/IEC 646:1991, |
| 2152 |
@i{Information technology @em ISO 7-bit coded character |
| 2153 |
set for information interchange}. |
| 2154 |
|
| 2155 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00415-01]} |
| 2156 |
@Chg{Version=[2],New=[@Defn{ISO/IEC 1539-1:2004} |
| 2157 |
@Defn{1539-1:2004, ISO/IEC standard} |
| 2158 |
@Defn{Fortran standard}], |
| 2159 |
Old=[@Defn{ISO/IEC 1539:1991} |
| 2160 |
@Defn{1539:1991, ISO/IEC standard} |
| 2161 |
@Defn{FORTRAN standard}]} |
| 2162 |
ISO/IEC @Chg{Version=[2],New=[1539-1:2004],Old=[1539:1991]}, |
| 2163 |
@i{Information technology @em Programming languages @em @Chg{Version=[2], |
| 2164 |
New=[Fortran @em Part 1: Base language],Old=[FORTRAN]}}. |
| 2165 |
|
| 2166 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00415-01]} |
| 2167 |
@Chg{Version=[2],New=[@Defn{ISO 1989:2002} |
| 2168 |
@Defn{1989:2002, ISO standard}],Old=[@Defn{ISO 1989:1985} |
| 2169 |
@Defn{1989:1985, ISO standard}]} |
| 2170 |
@Defn{COBOL standard} |
| 2171 |
ISO@Chg{Version=[2],New=[/IEC],Old=[]} 1989:@Chg{Version=[2],New=[2002],Old=[1985]}, |
| 2172 |
@i{@Chg{Version=[2],New=[Information technology @em ],Old=[]}Programming languages @em COBOL}. |
| 2173 |
|
| 2174 |
@ChgRef{Version=[3],Kind=[Added],ARef=[AI05-0127-2],ARef=[AI05-0299-1]} |
| 2175 |
@ChgAdded{Version=[3],Text=[@Defn{ISO/IEC 3166-1:2006} |
| 2176 |
@Defn{3166-1:2006, ISO/IEC standard} |
| 2177 |
@Defn{Country code standard} |
| 2178 |
ISO/IEC 3166-1:2006, @i{Codes for the representation of names of countries and |
| 2179 |
their subdivisions @em Part 1: Country Codes}.]} |
| 2180 |
|
| 2181 |
@Defn{ISO/IEC 6429:1992} |
| 2182 |
@Defn{6429:1992, ISO/IEC standard} |
| 2183 |
@Defn2{Term=[character set standard],Sec=(control functions)} |
| 2184 |
ISO/IEC 6429:1992, |
| 2185 |
@i{Information technology @em Control functions for coded |
| 2186 |
graphic character sets}. |
| 2187 |
|
| 2188 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00351-01]} |
| 2189 |
@ChgAdded{Version=[2],Text=[@Defn{ISO 8601:2004} |
| 2190 |
@Defn{date and time formatting standard} |
| 2191 |
ISO 8601:2004, @i{Data elements and interchange formats @em Information |
| 2192 |
interchange @em Representation of dates and times}.]} |
| 2193 |
|
| 2194 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 2195 |
@Chg{Version=[3],New=[@Defn{ISO/IEC 8859-1:1998} |
| 2196 |
@Defn{8859-1:1998, ISO/IEC standard}],Old=[@Defn{ISO/IEC 8859-1:1987} |
| 2197 |
@Defn{8859-1:1987, ISO/IEC standard}]} |
| 2198 |
@Defn2{Term=[character set standard],Sec=(8-bit)} |
| 2199 |
ISO/IEC 8859-1:@Chg{Version=[3],New=[1998],Old=[1987]}, |
| 2200 |
@i{Information @Chg{Version=[3],New=[technology],Old=[processing]} @em |
| 2201 |
8-bit single-byte coded @Chg{Version=[3],New=[graphic ],Old=[]}character |
| 2202 |
sets @em Part 1: Latin alphabet No. 1}. |
| 2203 |
|
| 2204 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00415-01]} |
| 2205 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0266-1]} |
| 2206 |
@Chg{Version=[2],New=[@Chg{Version=[3],New=[@Defn{ISO/IEC 9899:2011} |
| 2207 |
@Defn{9899:2011, ISO/IEC standard}],Old=[@Defn{ISO/IEC 9899:1999} |
| 2208 |
@Defn{9899:1999, ISO/IEC standard}]}], |
| 2209 |
Old=[@Defn{ISO/IEC 9899:1990} |
| 2210 |
@Defn{9899:1990, ISO/IEC standard}]} |
| 2211 |
@Defn{C standard} |
| 2212 |
ISO/IEC 9899:@Chg{Version=[2],New=[@Chg{Version=[3],New=[2011],Old=[1999]}], |
| 2213 |
Old=[1990]}, |
| 2214 |
@i{@Chg{Version=[3],New=[Information technology @em ],Old=[]}Programming |
| 2215 |
languages @em C}@Chg{Version=[2],New=[@Chg{Version=[3],New=[],Old=[, supplemented by Technical |
| 2216 |
Corrigendum 1:2001 and Technical Corrigendum 2:2004]}],Old=[]}. |
| 2217 |
@begin{Discussion} |
| 2218 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 2219 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 2220 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Unlike Fortran and |
| 2221 |
COBOL, which added the @i{Information technology} prefix to the titles of |
| 2222 |
their standard, C did not. This was confirmed in the list of standards titles |
| 2223 |
on the ISO web site. No idea why ISO allowed that@Comment{, or whether C is |
| 2224 |
planning to secede from SC22}.]}]} |
| 2225 |
@end{Discussion} |
| 2226 |
|
| 2227 |
@ChgRef{Version=[1],Kind=[Revised],Ref=[8652/0001],ARef=[AI95-00124-01]} |
| 2228 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01]} |
| 2229 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0266-1]} |
| 2230 |
@Chg{Version=[2],New=[@Chg{Version=[3],New=[@Defn{ISO/IEC 10646:2011} |
| 2231 |
@Defn{10646:2011, ISO/IEC standard}],Old=[@Defn{ISO/IEC 10646:2003} |
| 2232 |
@Defn{10646:2003, ISO/IEC standard}]} |
| 2233 |
@Defn2{Term=[character set standard],Sec=(16 and 32-bit)} |
| 2234 |
ISO/IEC 10646:@Chg{Version=[3],New=[2011],Old=[2003]}, @i{Information technology @em Universal Multiple-Octet |
| 2235 |
Coded Character Set (UCS)}.], |
| 2236 |
Old=[@Defn{ISO/IEC 10646-1:1993} |
| 2237 |
@Defn{10646-1:1993, ISO/IEC standard} |
| 2238 |
@Defn2{Term=[character set standard],Sec=(16-bit)} |
| 2239 |
ISO/IEC 10646-1:1993, |
| 2240 |
@i{Information technology @em Universal Multiple-Octet |
| 2241 |
Coded Character Set (UCS) @em Part 1: Architecture and Basic |
| 2242 |
Multilingual Plane}@Chg{Version=[1],New=[, supplemented by Technical Corrigendum |
| 2243 |
1:1996], Old=[]}.]} |
| 2244 |
|
| 2245 |
@begin{Reason} |
| 2246 |
@ChgRef{Version=[1],Kind=[Added],Ref=[8652/0001],ARef=[AI95-00124-01]} |
| 2247 |
@ChgRef{Version=[2],Kind=[DeletedAdded],ARef=[AI95-00285-01]} |
| 2248 |
@ChgNote{This is of only historical interest, so it was deleted; we use the |
| 2249 |
Unicode characterization now.} |
| 2250 |
@ChgDeleted{Version=[2],Text=[ |
| 2251 |
@Chg{Version=[1],New=[The Technical Corrigendum 1:1996 is needed so that character |
| 2252 |
codes C6 and E6 (the ligatures @latin1(198) and @latin1(230)) are considered |
| 2253 |
letters. These were named Latin Ligature AE in the original 1993 version, |
| 2254 |
which would exclude them from being letters as defined in |
| 2255 |
@RefSec{Character Set}.], Old=[]}]} |
| 2256 |
@end{Reason} |
| 2257 |
|
| 2258 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00376-01]} |
| 2259 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0266-1]} |
| 2260 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[@Defn{ISO/IEC 14882:2011} |
| 2261 |
@Defn{14882:2011, ISO/IEC standard}],Old=[@Defn{ISO/IEC 14882:2003} |
| 2262 |
@Defn{14882:2003, ISO/IEC standard}]} |
| 2263 |
@Defn{C++ standard} |
| 2264 |
ISO/IEC 14882:@Chg{Version=[3],New=[2011],Old=[2003]}, |
| 2265 |
@i{@Chg{Version=[3],New=[Information technology @em ],Old=[]}Programming languages @em C++}.]} |
| 2266 |
@begin{Discussion} |
| 2267 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 2268 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 2269 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[This title is also missing the |
| 2270 |
@i{Information technology} part. That was confirmed in the list of standards |
| 2271 |
titles on the ISO web site.]}]} |
| 2272 |
@end{Discussion} |
| 2273 |
|
| 2274 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00285-01]} |
| 2275 |
@ChgAdded{Version=[2],Text=[@Defn{ISO/IEC TR 19769:2004} |
| 2276 |
@Defn{19769:2004, ISO/IEC technical report} |
| 2277 |
ISO/IEC TR 19769:2004, @i{Information technology @em Programming languages, |
| 2278 |
their environments and system software interfaces @em Extensions for the |
| 2279 |
programming language C to support new character data types}.]} |
| 2280 |
|
| 2281 |
@begin{Discussion} |
| 2282 |
@Defn{POSIX} |
| 2283 |
POSIX, |
| 2284 |
@i{Portable Operating System Interface (POSIX) |
| 2285 |
@em Part 1: System Application Program Interface (API) [C Language]}, |
| 2286 |
The Institute of Electrical and Electronics Engineers, |
| 2287 |
1990. |
| 2288 |
@end{Discussion} |
| 2289 |
@end{Intro} |
| 2290 |
|
| 2291 |
@begin{DiffWord95} |
| 2292 |
@ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00285-01],ARef=[AI95-00376-01],ARef=[AI95-00415-01]} |
| 2293 |
@ChgAdded{Version=[2],Text=[Updated references to the most recent versions |
| 2294 |
of these standards. Added C++ and time standards. Added C character set technical |
| 2295 |
report.]} |
| 2296 |
@end{DiffWord95} |
| 2297 |
|
| 2298 |
@begin{DiffWord2005} |
| 2299 |
@ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0127-2]} |
| 2300 |
@ChgAdded{Version=[3],Text=[Added language and country code standards for |
| 2301 |
locale support.]} |
| 2302 |
|
| 2303 |
@ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0266-1]} |
| 2304 |
@ChgAdded{Version=[3],Text=[Updated references to the most recent versions |
| 2305 |
of these standards.]} |
| 2306 |
@end{DiffWord2005} |
| 2307 |
|
| 2308 |
|
| 2309 |
|
| 2310 |
@LabeledRevisedClause{Version=[3],New=[Terms and Definitions],Old=[Definitions]} |
| 2311 |
|
| 2312 |
@begin{Intro} |
| 2313 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00415-01]} |
| 2314 |
@Defn2{Term=[italics],Sec=(terms introduced or defined)} |
| 2315 |
Terms are defined throughout this International Standard, |
| 2316 |
indicated by @i(italic) type. |
| 2317 |
Terms explicitly defined in this International Standard are not to be presumed to |
| 2318 |
refer implicitly to similar terms defined elsewhere. |
| 2319 |
@Chg{Version=[2],New=[Mathematical terms not defined in this International |
| 2320 |
Standard are to be interpreted according to the @i<CRC Concise Encyclopedia of |
| 2321 |
Mathematics, Second Edition>. Other terms],Old=[Terms]} not defined in this |
| 2322 |
International Standard are to be interpreted according to |
| 2323 |
the @i(Webster's Third New International Dictionary of the |
| 2324 |
English Language). |
| 2325 |
Informal descriptions of some terms are also given in |
| 2326 |
@RefSec{Glossary}. |
| 2327 |
@Comment{These are here to avoid a blank paragraph at the end, and because |
| 2328 |
they have to be somewhere.} |
| 2329 |
@SeeAlso{Primary=[library unit], Other=(language-defined library units)} |
| 2330 |
@SeeOther{Primary=[predefined library unit], Other=(language-defined library units)} |
| 2331 |
@SeeAlso{Primary=[type], Other=(language-defined types)} |
| 2332 |
@SeeOther{Primary=[predefined type], Other=(language-defined types)} |
| 2333 |
@begin{Discussion} |
| 2334 |
The index contains an entry for every defined term. |
| 2335 |
|
| 2336 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00415-01]} |
| 2337 |
@ChgAdded{Version=[2],Text=[The contents of the @i<CRC Concise Encyclopedia of |
| 2338 |
Mathematics, Second Edition> can be accessed on |
| 2339 |
@URLLink{URL=[http://www.mathworld.com],Text=[http://www.mathworld.com]}. |
| 2340 |
The ISBN number of the book is ISBN 1584883472.]} |
| 2341 |
@end{Discussion} |
| 2342 |
@begin{GlossaryMarker} |
| 2343 |
Each term defined in @RefSecNum{Glossary} |
| 2344 |
is marked like this. |
| 2345 |
@end{GlossaryMarker} |
| 2346 |
@end{Intro} |
| 2347 |
|
| 2348 |
@begin{Discussion} |
| 2349 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 2350 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 2351 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 2352 |
Here are some AARM-only definitions: |
| 2353 |
@Defn{Ada Rapporteur Group (ARG)} |
| 2354 |
@Defn(ARG) |
| 2355 |
The Ada Rapporteur Group (ARG) interprets the @Chg{Version=[1],New=<Ada Reference Manual>,Old=<RM83>}. |
| 2356 |
@Defn{Ada Issue (AI)} |
| 2357 |
@Defn(AI) |
| 2358 |
An Ada Issue (AI) is a numbered ruling from the ARG.@Chg{Version=[1],New=< Ada Issues |
| 2359 |
created for Ada 83 are denoted as "AI83", while Ada Issues created for Ada 95 |
| 2360 |
are denoted as "AI95" in this document.@Chg{Version=[3],New=< Similarly, |
| 2361 |
Ada Issues created for Ada 2005 are denoted as "AI05">,Old=<>}>,Old=<>} |
| 2362 |
@Defn{Ada Commentary Integration Document (ACID)} |
| 2363 |
@Defn(ACID) |
| 2364 |
The Ada Commentary Integration Document (ACID) |
| 2365 |
is an edition of @Chg{Version=[2],New=[the Ada 83 RM],Old=[RM83]} |
| 2366 |
in which clearly marked insertions |
| 2367 |
and deletions indicate the effect of integrating the approved AIs. |
| 2368 |
@Defn{Uniformity Rapporteur Group (URG)} |
| 2369 |
@Defn(URG) |
| 2370 |
The Uniformity Rapporteur Group (URG) @Chg{Version=[1],New=<issued>,Old=<issues>} |
| 2371 |
recommendations intended to increase uniformity across Ada implementations. |
| 2372 |
@Chg{Version=[1],New=<The functions of the URG have been assumed by the ARG.>,Old=<>} |
| 2373 |
@Defn{Uniformity Issue (UI)} |
| 2374 |
@Defn(UI) |
| 2375 |
A Uniformity Issue (UI) @Chg{Version=[1],New=<was>,Old=<is>} a numbered recommendation from the URG. |
| 2376 |
@Chg{Version=[1],New=<A Defect Report and Response is an official query to WG9 about an |
| 2377 |
error in the standard. Defect Reports are processed by the ARG, and are |
| 2378 |
referenced here by their ISO numbers: 8652/nnnn. Most changes to the Ada 95 |
| 2379 |
standard include reference(s) to the Defect Report(s) that prompted the change.>,Old=<>} |
| 2380 |
@Chg{Version=[1],New=[@PDefn2{Term=[ACVC],Sec=(Ada Compiler Validation Capability)} |
| 2381 |
@PDefn2{Term=[Ada Compiler Validation Capability],Sec=(ACVC)} |
| 2382 |
@PDefn2{Term=[ACATS],Sec=(Ada Conformity Assessment Test Suite)} |
| 2383 |
@PDefn2{Term=[Ada Conformity Assessment Test Suite],Sec=(ACATS)} |
| 2384 |
The @i<Ada Conformity Assessment Test Suite (ACATS)> is a set of tests intended |
| 2385 |
to check the conformity of Ada implementations to this standard. This set of |
| 2386 |
tests was previously known as the Ada Compiler Validation Capability (ACVC).],Old=[]} |
| 2387 |
@end{Discussion} |