Debian Codegraph @

source_2020/01.mss

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