| 1 |
@Part(frontmatter, root="ada.mss") |
| 2 |
@comment{$Source: e:\\cvsroot/ARM/Source/front_matter.mss,v $} |
| 3 |
@comment{$Revision: 1.95 $ $Date: 2019/11/15 05:03:41 $} |
| 4 |
|
| 5 |
@UnNumberedSection(Foreword) |
| 6 |
|
| 7 |
@begin{Intro} |
| 8 |
@begin{ISOOnly}@Comment{This is ISO boilerplate, we don't want it in the RM} |
| 9 |
|
| 10 |
@ChgRef{Version=[3],Kind=[Revised]}@ChgNote{Updated boilerplate} |
| 11 |
ISO (the International Organization for Standardization) |
| 12 |
and IEC (the International Electrotechnical Commission) |
| 13 |
form the specialized system for worldwide standardization. |
| 14 |
National bodies that are members of ISO or IEC |
| 15 |
participate in the development of International Standards through |
| 16 |
technical committees established by the respective organization to deal |
| 17 |
with particular fields of technical activity. |
| 18 |
ISO and IEC technical committees collaborate in fields of mutual |
| 19 |
interest. |
| 20 |
Other international organizations, governmental and non-governmental, |
| 21 |
in liaison with ISO and IEC, also take part in the work.@Chg{Version=[3],New=[ In |
| 22 |
the field of information technology, |
| 23 |
ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.],Old=[]} |
| 24 |
|
| 25 |
@ChgRef{Version=[3],Kind=[Added]}@ChgNote{Updated boilerplate} |
| 26 |
@ChgAdded{Version=[3],Text=[International Standards are drafted in accordance |
| 27 |
with the rules given in the ISO/IEC Directives, Part 2.]} |
| 28 |
|
| 29 |
@ChgRef{Version=[3],Kind=[Revised]}@ChgNote{Updated boilerplate} |
| 30 |
@Chg{Version=[3],New=[The main task of the],Old=[In the field of information |
| 31 |
technology, ISO and IEC have established a]} joint technical |
| 32 |
committee@Chg{Version=[3],New=[ is to prepare |
| 33 |
International Standards],Old=[, ISO/IEC JTC 1]}. |
| 34 |
Draft International Standards adopted by the joint technical committee |
| 35 |
are circulated to national bodies for voting. |
| 36 |
Publication as an International Standard requires approval by |
| 37 |
at least 75 % of the national bodies casting a vote. |
| 38 |
|
| 39 |
@ChgRef{Version=[3],Kind=[Added]}@ChgNote{Updated boilerplate} |
| 40 |
@ChgAdded{Version=[3],Text=[Attention is drawn to the possibility that some of |
| 41 |
the elements of this document may be the subject of patent rights. ISO and IEC |
| 42 |
shall not be held responsible for identifying any or all such patent rights.]} |
| 43 |
|
| 44 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 45 |
International Standard ISO/IEC 8652 was prepared by |
| 46 |
Joint Technical Committee ISO/IEC JTC 1, |
| 47 |
@i{Information Technology}@Chg{Version=[3],New=[ Subcommittee SC22, @i{Programming |
| 48 |
languages, their environments and system software interfaces}],Old=[]}. |
| 49 |
|
| 50 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 51 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]} |
| 52 |
@ChgRef{Version=[4],Kind=[Revised]} |
| 53 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 54 |
This @Chg{Version=[4],New=[consolidated edition updates the third edition |
| 55 |
(ISO/IEC 8652:2012).],Old=[@Chg{Version=[3],New=[third],Old=[@Chg{Version=[2],New=[consolidated],Old=[second]}]} |
| 56 |
edition @Chg{Version=[3],New=[cancels and replaces],Old=[@Chg{Version=[2], |
| 57 |
New=[updates],Old=[cancels and replaces]}]} the @Chg{Version=[2],New=[second],Old=[first]} |
| 58 |
edition (ISO@Chg{Version=[3],New=[/IEC],Old=[]} 8652:@Chg{Version=[2],New=[1995)],Old=[1987), of which it constitutes |
| 59 |
a technical revision]}@Chg{Version=[3],New=[, which has been technically revised. |
| 60 |
It also incorporates the Technical Corrigendum ISO/IEC 8652:1995:COR.1:2001 |
| 61 |
and Amendment ISO/IEC 8652:1995:AMD 1:2007],Old=[]}.]} |
| 62 |
@Chg{Version=[5],New=[@Red{@b{This version includes corrections and improvements |
| 63 |
intended for a future version of Ada, herein named Ada 202x. Besides the |
| 64 |
corrections included in Technical Corrigendum 1, additional corrections and |
| 65 |
improvements are expected for Ada 202x; the timing and form (Corrigendum, |
| 66 |
Amendment, Revision) of future improvements has not yet been finalized. |
| 67 |
Thus, any proposed feature or correction may be substantially changed or withdrawn |
| 68 |
before an updated language begins standardization. These draft documents are not |
| 69 |
an official publication or work product of the ARG, but rather are provided by |
| 70 |
the Ada Resource Association |
| 71 |
(@URLLink{URL=[http://www.adaresource.org],Text=[www.adaresource.org]}) |
| 72 |
as a service to the Ada community.}}],Old=[]} |
| 73 |
|
| 74 |
@Comment{Old text: At this time, no decisions |
| 75 |
have been made as to when, if, or in what form (Corrigendum, Amendment, Revision) |
| 76 |
these corrections and improvements will be added to Ada.} |
| 77 |
|
| 78 |
@begin{Discussion} |
| 79 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 80 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 81 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[The above is |
| 82 |
unofficial wording added just to avoid confusion. If ISO decides |
| 83 |
to publish a new standard, the above would be replaced by @ldquote@;This third |
| 84 |
edition cancels and replaces the second edition (ISO 8652:1995), of which it |
| 85 |
constitutes a technical revision@rdquote. The first three paragraphs in this |
| 86 |
section also would be replaced by the current ISO boilerplate.]}]} |
| 87 |
@end{Discussion} |
| 88 |
|
| 89 |
|
| 90 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00440-01]} |
| 91 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg],ARef=[AI05-0299-1]} |
| 92 |
@ChgDeleted{Version=[3],Text=[Annexes A to J form an integral part of this |
| 93 |
International Standard. |
| 94 |
Annexes K to @Chg{Version=[2],New=[Q],Old=[P]} are for information only.]} |
| 95 |
|
| 96 |
@end{ISOOnly}@Comment{End ISO boilerplate} |
| 97 |
@end{Intro} |
| 98 |
|
| 99 |
@comment{(*Removed the below for Ada 2012, which was a revision*)} |
| 100 |
@ChgNote{Following is a foreword for the consolidated edition of the RM/AARM.} |
| 101 |
@ChgNote{We needed boilerplate like this to avoid objections from various |
| 102 |
outside parties. It seems unlikely that the same objections won't be raised |
| 103 |
again.} |
| 104 |
@begin{Intro} |
| 105 |
@begin{NotISO} |
| 106 |
@ChgRef{Version=[1],Kind=[Added]} |
| 107 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 108 |
@ChgAdded{Version=[1],Text=[The International Standard for the |
| 109 |
programming language Ada is ISO/IEC 8652:@Chg{Version=[4],New=[2012],Old=[1995]}(E).]} |
| 110 |
|
| 111 |
@ChgRef{Version=[1],Kind=[Added]} |
| 112 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 113 |
@ChgAdded{Version=[1],Text=[The Ada Working Group ISO/IEC JTC 1/SC 22/WG 9 is tasked by ISO with |
| 114 |
the work item to interpret and maintain the International Standard and to |
| 115 |
produce Technical Corrigenda, as appropriate. The technical work on the |
| 116 |
International Standard is performed by the Ada Rapporteur Group (ARG) of WG 9. |
| 117 |
In @Chg{Version=[4],New=[June 2015],Old=[September 2000]}, WG 9 approved and |
| 118 |
forwarded Technical Corrigendum 1 to SC 22 for ISO approval, which was granted |
| 119 |
in @Chg{Version=[4],New=[December 2015],Old=[February 2001]}. Technical |
| 120 |
Corrigendum 1 was published in @Chg{Version=[4],New=[February 2016],Old=[June 2001]}.]} |
| 121 |
|
| 122 |
@ChgRef{Version=[2],Kind=[Added]} |
| 123 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 124 |
@ChgRef{Version=[4],Kind=[DeletedAddedNoDelMsg]} |
| 125 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 126 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[4],New=[@Chg{Version=[5],New=[In |
| 127 |
June 2016, WG 9 approved a tentative schedule for the preparation of |
| 128 |
an Amendment or Revision to the International Standard, with a delivery |
| 129 |
no earlier than 2018. In July 2019, WG 9 approved an additional review and |
| 130 |
prototyping period for this revision, extending the delivery no earlier |
| 131 |
than late 2020. For the purposes of this document, we'll call this |
| 132 |
Ada 202x, even though the final timing and form has not yet been determined.],Old=[]}],Old=[In |
| 133 |
October 2002, WG 9 approved a schedule and |
| 134 |
guidelines for the preparation of an Amendment to the International Standard. |
| 135 |
WG 9 approved the scope of the Amendment in June 2004. In April 2006, WG 9 |
| 136 |
approved and forwarded the Amendment to SC 22 for approval, which was granted |
| 137 |
in August 2006. Final ISO/IEC approval @Chg{Version=[3],New=[came in January 2007, |
| 138 |
and the Amendment was published as ISO/IEC 8652:1995/Amd 1:2007(E) in March],Old=[is expected |
| 139 |
by early]} 2007.]}]} |
| 140 |
|
| 141 |
@ChgRef{Version=[1],Kind=[Added]} |
| 142 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 143 |
@ChgAdded{Version=[1],Text=[The Technical Corrigendum lists the individual |
| 144 |
changes that need to be made to the text of the International Standard to |
| 145 |
correct errors, omissions or inconsistencies. The corrections specified in |
| 146 |
Technical Corrigendum 1 are |
| 147 |
part of the International Standard ISO/IEC 8652:@Chg{Version=[4],New=[2012],Old=[1995]}(E).]} |
| 148 |
|
| 149 |
@ChgRef{Version=[2],Kind=[Added]} |
| 150 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 151 |
@ChgRef{Version=[4],Kind=[DeletedAddedNoDelMsg]} |
| 152 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[4],New=[],Old=[Similarly, Amendment 1 @Chg{Version=[3],New=[and |
| 153 |
Amendment 2 list],Old=[lists]} the individual changes that |
| 154 |
need to be made to the text of the International Standard to add new features |
| 155 |
as well as correct errors.]}]} |
| 156 |
|
| 157 |
@ChgRef{Version=[1],Kind=[Added]} |
| 158 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 159 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 160 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 161 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 162 |
@Chg{New=[@Chg{Version=[5],New=[It is not known whether ISO will |
| 163 |
publish a document that merges the changes of Ada 202x |
| 164 |
into the text of the International Standard.], |
| 165 |
Old=[When ISO published Technical Corrigendum 1, it did not also publish |
| 166 |
a document that merges the @Chg{Version=[2],New=[changes from the ],Old=[]}Technical |
| 167 |
Corrigendum @Chg{Version=[2],New=[],Old=[changes ]}into |
| 168 |
the text of the International Standard.@Chg{Version=[4],New=[],Old=[@Chg{Version=[2],New=[ @Chg{Version=[3], |
| 169 |
New=[Similarly,],Old=[It is not |
| 170 |
known whether]} ISO @Chg{Version=[3],New=[did not],Old=[will]} publish a |
| 171 |
document that merges the changes from |
| 172 |
Technical Corrigendum and Amendment 1 into the text of the International |
| 173 |
Standard.],Old=[]}@Chg{Version=[3],New=[ It is not known whether ISO will |
| 174 |
publish a document that merges the changes from Technical Corrigendum 1, |
| 175 |
Amendment 1, and Amendment 2 into the text of the International |
| 176 |
Standard.],Old=[]}]}]} |
| 177 |
However, ISO rules require that the |
| 178 |
project editor for the @Chg{Version=[2],New=[International Standard], |
| 179 |
Old=[Technical Corrigendum]} be able to produce such a document |
| 180 |
on demand.],Old=[]} |
| 181 |
|
| 182 |
@ChgRef{Version=[1],Kind=[Added]} |
| 183 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 184 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 185 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 186 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 187 |
@Chg{New=[This version of the Ada Reference Manual is what the project editor would |
| 188 |
provide to ISO in response to such a request. It incorporates the changes |
| 189 |
specified in the Technical Corrigendum @Chg{Version=[4],New=[@Chg{Version=[5],New=[ |
| 190 |
and Ada 202x ],Old=[]}],Old=[@Chg{Version=[2],New=[and |
| 191 |
@Chg{Version=[3],New=[Amendments 1 and 2],Old=[Amendment]} ],Old=[]}]}into |
| 192 |
the text of @Chg{Version=[4],New=[ISO/IEC 8652:2012(E)],Old=[ISO/IEC 8652:1995(E)]}. |
| 193 |
It should be understood that the publication of any ISO document involves |
| 194 |
changes in general format, boilerplate, headers, etc., as well as a review by professional |
| 195 |
editors that may introduce editorial changes to the text. This version of the |
| 196 |
Ada Reference Manual is therefore neither an official ISO document, nor a |
| 197 |
version guaranteed to be identical to an official ISO document, should ISO |
| 198 |
decide to reprint the International Standard incorporating an approved Technical |
| 199 |
Corrigendum@Chg{Version=[4],New=[@Chg{Version=[5],New=[ and the |
| 200 |
Amendment],Old=[]}],Old=[@Chg{Version=[2],New=[ and @Chg{Version=[3],New=[Amendments],Old=[Amendment]}], |
| 201 |
Old=[]}]}. It is nevertheless a |
| 202 |
best effort to be as close as possible to the |
| 203 |
technical content of such an updated document. In the case of a conflict between this |
| 204 |
document and @Chg{Version=[5],New=[Ada 202x (or between this document and |
| 205 |
Technical Corrigendum 1 as approved by ISO in the case of paragraphs not changed |
| 206 |
by the Corrigendum; or between this document and ],Old=[@Chg{Version=[4], |
| 207 |
New=[Technical Corrigendum 1 as approved by ISO (or |
| 208 |
between this document and ],Old=[@Chg{Version=[2],New=[Amendment],Old=[Technical Corrigendum]} |
| 209 |
@Chg{Version=[3],New=[2],Old=[1]} as approved by ISO (or between this document |
| 210 |
and@Chg{Version=[3],New=[ Amendment 1 in the case of paragraphs |
| 211 |
not changed by Amendment 2; or between this document and],Old=[]} |
| 212 |
@Chg{Version=[2],New=[Technical Corrigendum 1 in the case of paragraphs |
| 213 |
not changed by @Chg{Version=[3],New=[either ],Old=[]}Amendment@Chg{Version=[3],New=[],Old=[ 1]}; |
| 214 |
or between this document and ],Old=[]}]}]}the |
| 215 |
original 8652:@Chg{Version=[4],New=[2012],Old=[1995]} in the case of paragraphs |
| 216 |
not changed by @Chg{Version=[4],New=[],Old=[@Chg{Version=[2], |
| 217 |
New=[either Amendment@Chg{Version=[3],New=[],Old=[ 1]} or ], |
| 218 |
Old=[]}]}Technical Corrigendum 1), the other documents contain the official |
| 219 |
text of the |
| 220 |
International Standard @Chg{Version=[4],New=[ISO/IEC 8652:2012(E)],Old=[ |
| 221 |
ISO/IEC 8652:1995(E)@Chg{Version=[2],New=[ and |
| 222 |
its @Chg{Version=[3],New=[Amendments],Old=[Amendment]}],Old=[]}]}.],Old=[]} |
| 223 |
|
| 224 |
@ChgRef{Version=[1],Kind=[Added]} |
| 225 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 226 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 227 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 228 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 229 |
@Chg{New=[As it is very inconvenient to have the Reference Manual for Ada |
| 230 |
specified in @Chg{Version=[4],New=[@Chg{Version=[5],New=[three],Old=[two]}], |
| 231 |
Old=[@Chg{Version=[2],New=[@Chg{Version=[3],New=[four],Old=[three]}], |
| 232 |
Old=[two]}]} documents, this |
| 233 |
consolidated version of the Ada Reference |
| 234 |
Manual is made available to the public.],Old=[]} |
| 235 |
|
| 236 |
@end{NotISO} |
| 237 |
@end{Intro} |
| 238 |
@Comment{(*End of Non-ISO Foreword, not needed for Ada 2012*)} |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
@begin{Comment} (*Was Syntax9XOnly - We don't generate this document anymore*) |
| 246 |
This document lists the syntax rules of Ada 95. |
| 247 |
@end{Comment} |
| 248 |
@begin{Comment} (*Was Chg839XOnly - We don't generate this document anymore*) |
| 249 |
|
| 250 |
This document lists in detail the changes introduced in the second |
| 251 |
(Ada 95) edition of the Ada standard (ISO/IEC 8652:1995) |
| 252 |
with respect to the first (Ada 83) edition (ISO 8652:1987). |
| 253 |
|
| 254 |
@end{Comment} |
| 255 |
|
| 256 |
|
| 257 |
@UnNumberedSection{Introduction} |
| 258 |
|
| 259 |
@begin{Intro} |
| 260 |
@begin{NotISO} |
| 261 |
@begin{AARMOnly} |
| 262 |
This is the Annotated Ada Reference Manual. |
| 263 |
@begin{Discussion} |
| 264 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 265 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 266 |
This document is the Annotated Ada Reference Manual (AARM). |
| 267 |
It contains the entire text of the Ada |
| 268 |
@Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[95]} standard |
| 269 |
(ISO/IEC 8652:@Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[1995]}), |
| 270 |
plus various annotations. |
| 271 |
It is intended primarily for compiler writers, |
| 272 |
validation test writers, and other language lawyers. |
| 273 |
The annotations include detailed rationale for individual rules |
| 274 |
and explanations of some of the more arcane interactions among the rules. |
| 275 |
@end{Discussion} |
| 276 |
@end{AARMOnly} |
| 277 |
@begin{RMOnly} |
| 278 |
This is the Ada Reference Manual. |
| 279 |
@end{RMOnly} |
| 280 |
|
| 281 |
@Leading@;Other available Ada documents include: |
| 282 |
@comment{We have to put the itemize inside of the AARMOnly, because otherwise |
| 283 |
the formatter thinks this is a nested bullet, making a mess. Since this is |
| 284 |
the only place this is used, it is easier to fix the text than the program. |
| 285 |
RLB - 2000-05-17} |
| 286 |
@begin{AARMOnly} |
| 287 |
@begin{Itemize} |
| 288 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 289 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0245-1]} |
| 290 |
@Chg{Version=[3],New=[Ada 2012 Rationale. This gives an introduction to the changes and |
| 291 |
new features in Ada 2012, and explains the rationale behind them. |
| 292 |
Programmers should read this rationale before reading this Standard |
| 293 |
in depth. Rationales for Ada 83, Ada 95, and Ada 2005 are also |
| 294 |
available.],Old=[@Chg{Version=[2],New=[Ada 95 Rationale. This],Old=[Rationale for the Ada |
| 295 |
Programming Language @em 1995 edition, which]} gives an introduction to the |
| 296 |
new features of Ada@Chg{Version=[2],New=[ incorporated in the 1995 edition |
| 297 |
of this Standard],Old=[]}, and explains the rationale behind them. |
| 298 |
Programmers @Chg{Version=[2],New=[unfamiliar with Ada 95 ], |
| 299 |
Old=[]}should read this first.]} |
| 300 |
|
| 301 |
@begin{Discussion} |
| 302 |
@ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0245-1]} |
| 303 |
@ChgRef{Version=[4],Kind=[DeletedAddedNoDelMsg]}@Comment{Done now.} |
| 304 |
@ChgAdded{Version=[3],Text=[@Chg{Version=[4],New=[],Old=[As of this writing |
| 305 |
(December 2012), only five |
| 306 |
chapters of the Ada 2012 Rationale have been published. Additional |
| 307 |
chapters are in development and should be published during 2013.]}]} |
| 308 |
@end{Discussion} |
| 309 |
|
| 310 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 311 |
@ChgRef{Version=[3],Kind=[DeletedAddedNoDelMsg],ARef=[AI05-0245-1]} |
| 312 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Ada 2005 Rationale. |
| 313 |
This gives an introduction to the changes and new features in Ada 2005 (compared |
| 314 |
with the 1995 edition), and explains the rationale behind them. Programmers |
| 315 |
should read this rationale before reading this Standard in depth.]}]} |
| 316 |
|
| 317 |
@ChgRef{Version=[1],Kind=[Deleted]} |
| 318 |
@ChgDeleted{Version=[1],Text=[Changes to Ada @em 1987 to 1995. This document |
| 319 |
lists in detail the changes made to the 1987 edition of the standard.]} |
| 320 |
|
| 321 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 322 |
The Ada Reference Manual (RM). |
| 323 |
This directly corresponds to the International Standard @em ISO/IEC 8652:@Chg{Version=[3],New=[2012],Old=[1995]}. |
| 324 |
|
| 325 |
@ChgRef{Version=[2],Kind=[Added]} |
| 326 |
@ChgRef{Version=[3],Kind=[DeletedAddedNoDelMsg]} |
| 327 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Technical Corrigendum 1 |
| 328 |
@em ISO/IEC 8652:1995:COR.1:2001. This document lists corrections to the |
| 329 |
International Standard.]}]}@ChgNote{The Corrigenda are consolidated into |
| 330 |
this document, so we don't mention them separately.} |
| 331 |
|
| 332 |
@ChgRef{Version=[2],Kind=[Added]} |
| 333 |
@ChgRef{Version=[3],Kind=[DeletedAddedNoDelMsg]} |
| 334 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Amendment 1 @em ISO/IEC |
| 335 |
8652:1995:AMD 1:2007. This document outlines additional features and corrections |
| 336 |
to the International Standard.]}]}@ChgNote{This is consolidated into the Ada 2012 RM} |
| 337 |
|
| 338 |
@ChgRef{Version=[2],Kind=[Added]} |
| 339 |
@ChgRef{Version=[3],Kind=[DeletedAddedNoDelMsg]} |
| 340 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[The consolidated Ada Reference Manual. An @i{unofficial} |
| 341 |
document combining the above three |
| 342 |
documents into a single document.]}]} |
| 343 |
@end{Itemize} |
| 344 |
@end{AARMOnly} |
| 345 |
|
| 346 |
@begin{RMOnly} |
| 347 |
@begin{Itemize} |
| 348 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 349 |
@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0245-1]} |
| 350 |
@Chg{Version=[3],New=[Ada 2012 Rationale. This gives an introduction to the changes and |
| 351 |
new features in Ada 2012, and explains the rationale behind them. |
| 352 |
Programmers should read this rationale before reading this Standard |
| 353 |
in depth. Rationales for Ada 83, Ada 95, and Ada 2005 are also |
| 354 |
available.],Old=[@Chg{Version=[2],New=[Ada 95 Rationale. This],Old=[Rationale for the Ada |
| 355 |
Programming Language @em 1995 edition, which]} gives an introduction to the |
| 356 |
new features of Ada@Chg{Version=[2],New=[ incorporated in the 1995 edition |
| 357 |
of this Standard],Old=[]}, and explains the rationale behind them. |
| 358 |
Programmers @Chg{Version=[2],New=[unfamiliar with Ada 95 ], |
| 359 |
Old=[]}should read this first.]} |
| 360 |
|
| 361 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 362 |
@ChgRef{Version=[3],Kind=[DeletedAddedNoDelMsg],ARef=[AI05-0245-1]} |
| 363 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[],Old=[Ada 2005 Rationale. |
| 364 |
This gives an introduction to the changes and new features in Ada 2005 (compared |
| 365 |
with the 1995 edition), and explains the rationale behind them. Programmers |
| 366 |
should read this rationale before reading this Standard in depth.]}]} |
| 367 |
|
| 368 |
@ChgRef{Version=[1],Kind=[Deleted]} |
| 369 |
@ChgDeleted{Version=[1], Text=[Changes to Ada @em 1987 to 1995. This document lists in |
| 370 |
detail the changes made to the 1987 edition of the standard.]} |
| 371 |
|
| 372 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 373 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 374 |
The Annotated Ada Reference Manual (AARM).@Defn{Annotated Ada Reference Manual} |
| 375 |
@Defn{AARM}The AARM contains all of the text |
| 376 |
in @Chg{Version=[3],New=[this International Standard], |
| 377 |
Old=[@Chg{Version=[2],New=[the consolidated Ada Reference Manual],Old=[the RM95]}]}, |
| 378 |
@ChgNote{Version=[2]: John had "this International Standard", but it's really |
| 379 |
related to the unofficial document. Change it back if ISO decides to publish |
| 380 |
this consolidated RM.} |
| 381 |
@ChgNote{Version=[3]: Changed back for Ada 2012.} |
| 382 |
plus various annotations. It is intended primarily for compiler writers, |
| 383 |
validation test writers, |
| 384 |
and others who wish to study the fine details. |
| 385 |
The annotations include detailed rationale for individual rules |
| 386 |
and explanations of some of the more arcane interactions among the |
| 387 |
rules. |
| 388 |
@end{Itemize} |
| 389 |
@end{RMOnly} |
| 390 |
@end{NotISO} |
| 391 |
@end{Intro} |
| 392 |
|
| 393 |
@SubHeading(Design Goals) |
| 394 |
|
| 395 |
@begin{Intro} |
| 396 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 397 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 398 |
@ChgRef{Version=[5],Kind=[Revised],ARef=[AI12-0313-1]} |
| 399 |
Ada was originally designed with three overriding concerns: |
| 400 |
program reliability and maintenance, programming as a human |
| 401 |
activity, and efficiency. @Chg{Version=[2],New=[The 1995],Old=[This]} revision |
| 402 |
to the language was designed to provide greater flexibility and extensibility, |
| 403 |
additional control over storage management and |
| 404 |
synchronization, and standardized packages oriented toward |
| 405 |
supporting important application areas, while at the same |
| 406 |
time retaining the original emphasis on reliability, |
| 407 |
maintainability, and efficiency.@Chg{Version=[2],New=[ @Chg{Version=[5],New=[Subsequent |
| 408 |
editions, including this],Old=[This]} |
| 409 |
@Chg{Version=[3],New=[@Chg{Version=[5],New=[fourth],Old=[third]} |
| 410 |
edition],Old=[amended version]}@Chg{Version=[5],New=[, have |
| 411 |
provided],Old=[provides]} |
| 412 |
further flexibility and @Chg{Version=[5],New=[added],Old=[adds]} |
| 413 |
more standardized packages within the |
| 414 |
framework provided by the 1995 revision.],Old=[]} |
| 415 |
|
| 416 |
The need for languages that promote reliability and simplify |
| 417 |
maintenance is well established. Hence emphasis was placed |
| 418 |
on program readability over ease of writing. For example, |
| 419 |
the rules of the language require that program variables be |
| 420 |
explicitly declared and that their type be specified. Since |
| 421 |
the type of a variable is invariant, compilers can ensure |
| 422 |
that operations on variables are compatible with the |
| 423 |
properties intended for objects of the type. Furthermore, |
| 424 |
error-prone notations have been avoided, and the syntax of |
| 425 |
the language avoids the use of encoded forms in favor of |
| 426 |
more English-like constructs. Finally, the language offers |
| 427 |
support for separate compilation of program units in a way |
| 428 |
that facilitates program development and maintenance, and |
| 429 |
which provides the same degree of checking between units as |
| 430 |
within a unit. |
| 431 |
|
| 432 |
Concern for the human programmer was also stressed during |
| 433 |
the design. Above all, an attempt was made to keep to a |
| 434 |
relatively small number of underlying concepts integrated in |
| 435 |
a consistent and systematic way while continuing to avoid |
| 436 |
the pitfalls of excessive involution. The design especially |
| 437 |
aims to provide language constructs that correspond |
| 438 |
intuitively to the normal expectations of users. |
| 439 |
|
| 440 |
Like many other human activities, the development of |
| 441 |
programs is becoming ever more decentralized and |
| 442 |
distributed. Consequently, the ability to assemble a |
| 443 |
program from independently produced software components |
| 444 |
continues to be a central idea in the design. The concepts |
| 445 |
of packages, of private types, and of generic units are |
| 446 |
directly related to this idea, which has ramifications in |
| 447 |
many other aspects of the language. An allied concern is |
| 448 |
the maintenance of programs to match changing requirements; |
| 449 |
type extension and the hierarchical library enable a program |
| 450 |
to be modified while minimizing disturbance to existing |
| 451 |
tested and trusted components. |
| 452 |
|
| 453 |
@ChgRef{Version=[5],Kind=[Revised],ARef=[AI12-0313-1]} |
| 454 |
No language can avoid the problem of efficiency. Languages |
| 455 |
that require over-elaborate compilers, or that lead to the |
| 456 |
inefficient use of storage or execution time, force these |
| 457 |
inefficiencies on all machines and on all programs. Every |
| 458 |
construct of the language was examined in the light of |
| 459 |
present implementation techniques. Any proposed construct |
| 460 |
whose implementation was unclear or that required excessive |
| 461 |
machine resources was rejected.@Chg{Version=[5],New=[ Parallel |
| 462 |
constructs were introduced to simplify making safe and efficient |
| 463 |
use of modern multicore architectures.],Old=[]} |
| 464 |
|
| 465 |
@end{Intro} |
| 466 |
|
| 467 |
@SubHeading{Language Summary} |
| 468 |
|
| 469 |
@begin{Intro} |
| 470 |
An Ada program is composed of one or more program units. |
| 471 |
Program units may be subprograms (which define executable |
| 472 |
algorithms), packages (which define collections of |
| 473 |
entities), task units (which define concurrent |
| 474 |
computations), protected units (which define operations for |
| 475 |
the coordinated sharing of data between tasks), or generic |
| 476 |
units (which define parameterized forms of packages and |
| 477 |
subprograms). Each program unit normally consists of two parts: a |
| 478 |
specification, containing the information that must be |
| 479 |
visible to other units, and a body, containing the |
| 480 |
implementation details, which need not be visible to other |
| 481 |
units. Most program units can be compiled separately. |
| 482 |
|
| 483 |
This distinction of the specification and body, and the |
| 484 |
ability to compile units separately, allows a program to be |
| 485 |
designed, written, and tested as a set of largely |
| 486 |
independent software components. |
| 487 |
|
| 488 |
An Ada program will normally make use of a library of |
| 489 |
program units of general utility. The language provides |
| 490 |
means whereby individual organizations can construct their |
| 491 |
own libraries. All libraries are structured in a |
| 492 |
hierarchical manner; this enables the logical decomposition |
| 493 |
of a subsystem into individual components. The text of a |
| 494 |
separately compiled program unit must name the library units |
| 495 |
it requires. |
| 496 |
|
| 497 |
|
| 498 |
@keepnext@i(Program Units) |
| 499 |
|
| 500 |
A subprogram is the basic unit for expressing an algorithm. |
| 501 |
There are two kinds of subprograms: procedures and |
| 502 |
functions. A procedure is the means of invoking a series of |
| 503 |
actions. For example, it may read data, update variables, |
| 504 |
or produce some output. It may have parameters, to provide |
| 505 |
a controlled means of passing information between the |
| 506 |
procedure and the point of call. |
| 507 |
A function is the means of invoking the computation of a |
| 508 |
value. It is similar to a procedure, but in addition will |
| 509 |
return a result. |
| 510 |
|
| 511 |
A package is the basic unit for defining a collection of |
| 512 |
logically related entities. For example, a package can be |
| 513 |
used to define a set of type declarations and |
| 514 |
associated operations. Portions of a package can be hidden |
| 515 |
from the user, thus allowing access only to the logical |
| 516 |
properties expressed by the package specification. |
| 517 |
|
| 518 |
Subprogram and package units may be compiled separately and |
| 519 |
arranged in hierarchies of parent and child units giving |
| 520 |
fine control over visibility of the logical properties and |
| 521 |
their detailed implementation. |
| 522 |
|
| 523 |
A task unit is the basic unit for defining a task whose |
| 524 |
sequence of actions may be executed concurrently with those |
| 525 |
of other tasks. Such tasks may be implemented on |
| 526 |
multicomputers, multiprocessors, or with interleaved |
| 527 |
execution on a single processor. A task unit may define |
| 528 |
either a single executing task or a task type permitting the |
| 529 |
creation of any number of similar tasks. |
| 530 |
|
| 531 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00114-01]} |
| 532 |
A protected unit is the basic unit for defining protected |
| 533 |
operations for the coordinated use of data shared between |
| 534 |
tasks. Simple mutual exclusion is provided automatically, |
| 535 |
and more elaborate sharing protocols can be defined. A |
| 536 |
protected operation can either be a subprogram or an entry. |
| 537 |
A protected entry specifies a Boolean expression (an entry |
| 538 |
barrier) that must be @Chg{Version=[2],New=[True],Old=[true]} |
| 539 |
before the body of the entry is |
| 540 |
executed. A protected unit may define a single protected |
| 541 |
object or a protected type permitting the creation of |
| 542 |
several similar objects. |
| 543 |
|
| 544 |
@keepnext@i(Declarations and Statements) |
| 545 |
|
| 546 |
The body of a program unit generally contains two parts: a |
| 547 |
declarative part, which defines the logical entities to be |
| 548 |
used in the program unit, and a sequence of statements, |
| 549 |
which defines the execution of the program unit. |
| 550 |
|
| 551 |
The declarative part associates names with declared |
| 552 |
entities. For example, a name may denote a type, a |
| 553 |
constant, a variable, or an exception. A declarative part |
| 554 |
also introduces the names and parameters of other nested |
| 555 |
subprograms, packages, task units, protected units, and |
| 556 |
generic units to be used in the program unit. |
| 557 |
|
| 558 |
The sequence of statements describes a sequence of actions |
| 559 |
that are to be performed. The statements are executed in |
| 560 |
succession (unless a transfer of control causes execution to continue |
| 561 |
from another place). |
| 562 |
|
| 563 |
An assignment statement changes the value of a variable. A |
| 564 |
procedure call invokes execution of a procedure after |
| 565 |
associating any actual parameters provided at the call with |
| 566 |
the corresponding formal parameters. |
| 567 |
|
| 568 |
Case statements and if statements allow the selection of an |
| 569 |
enclosed sequence of statements based on the value of an |
| 570 |
expression or on the value of a condition. |
| 571 |
|
| 572 |
The loop statement provides the basic iterative mechanism in |
| 573 |
the language. A loop statement specifies that a sequence of |
| 574 |
statements is to be executed repeatedly as directed by an |
| 575 |
iteration scheme, or until an exit statement is encountered. |
| 576 |
|
| 577 |
A block statement comprises a sequence of statements |
| 578 |
preceded by the declaration of local entities used by the |
| 579 |
statements. |
| 580 |
|
| 581 |
@ChgRef{Version=[5],Kind=[Revised],ARef=[AI12-0119-1]} |
| 582 |
Certain statements are associated with concurrent execution. |
| 583 |
A delay statement delays the execution of a task for a |
| 584 |
specified duration or until a specified time. An entry call |
| 585 |
statement is written as a procedure call statement; it |
| 586 |
requests an operation on a task or on a protected |
| 587 |
object, blocking the caller until the operation can be |
| 588 |
performed. A called task may accept an entry call by |
| 589 |
executing a corresponding accept statement, which specifies |
| 590 |
the actions then to be performed as part of the rendezvous |
| 591 |
with the calling task. An entry call on a protected object |
| 592 |
is processed when the corresponding entry barrier evaluates |
| 593 |
to true, whereupon the body of the entry is executed. The |
| 594 |
requeue statement permits the provision of a service as a |
| 595 |
number of related activities with preference control. One |
| 596 |
form of the select statement allows a selective wait for one |
| 597 |
of several alternative rendezvous. Other forms of the |
| 598 |
select statement allow conditional or timed entry calls and |
| 599 |
the asynchronous transfer of control in response to some |
| 600 |
triggering event.@Chg{Version=[5],New=[ Various parallel |
| 601 |
constructs, including parallel loops and parallel blocks, |
| 602 |
support the initiation of multiple logical threads of control designed |
| 603 |
to execute in parallel when multiple processors are available.],Old=[]} |
| 604 |
|
| 605 |
Execution of a program unit may encounter error situations |
| 606 |
in which normal program execution cannot continue. For |
| 607 |
example, an arithmetic computation may exceed the maximum |
| 608 |
allowed value of a number, or an attempt may be made to |
| 609 |
access an array component by using an incorrect index value. |
| 610 |
To deal with such error situations, the statements of a |
| 611 |
program unit can be textually followed by exception handlers |
| 612 |
that specify the actions to be taken when the error |
| 613 |
situation arises. Exceptions can be raised explicitly by a |
| 614 |
raise statement. |
| 615 |
|
| 616 |
@keepnext@i(Data Types) |
| 617 |
|
| 618 |
Every object in the language has a type, which characterizes |
| 619 |
a set of values and a set of applicable operations. The |
| 620 |
main classes of types are elementary types (comprising |
| 621 |
enumeration, numeric, and access types) and composite types |
| 622 |
(including array and record types). |
| 623 |
|
| 624 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01],ARef=[AI95-00387-01]} |
| 625 |
An enumeration type defines an ordered set of distinct |
| 626 |
enumeration literals, for example a list of states or an |
| 627 |
alphabet of characters. The enumeration types Boolean, |
| 628 |
Character, @Chg{Version=[2],New=[], |
| 629 |
Old=[and ]}Wide_Character@Chg{Version=[2],New=[, and Wide_Wide_Character], |
| 630 |
Old=[]} are predefined. |
| 631 |
|
| 632 |
Numeric types provide a means of performing exact or |
| 633 |
approximate numerical computations. Exact computations use |
| 634 |
integer types, which denote sets of consecutive integers. |
| 635 |
Approximate computations use either fixed point types, with |
| 636 |
absolute bounds on the error, or floating point types, with |
| 637 |
relative bounds on the error. The numeric types Integer, |
| 638 |
Float, and Duration are predefined. |
| 639 |
|
| 640 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01],ARef=[AI95-00387-01]} |
| 641 |
Composite types allow definitions of structured objects with |
| 642 |
related components. The composite types in the language |
| 643 |
include arrays and records. An array is an object with |
| 644 |
indexed components of the same type. A record is an object |
| 645 |
with named components of possibly different types. Task and |
| 646 |
protected types are also forms of composite types. The |
| 647 |
array types String@Chg{Version=[2],New=[,],Old=[ and]} |
| 648 |
Wide_String@Chg{Version=[2], |
| 649 |
New=[, and Wide_Wide_String],Old=[]} are predefined. |
| 650 |
|
| 651 |
Record, task, and protected types may have special components |
| 652 |
called discriminants which parameterize the type. |
| 653 |
Variant record structures that depend on the values of |
| 654 |
discriminants can be defined within a record type. |
| 655 |
|
| 656 |
Access types allow the construction of linked data |
| 657 |
structures. A value of an access type represents a |
| 658 |
reference to an object declared as aliased or to an object |
| 659 |
created by the evaluation of an allocator. Several |
| 660 |
variables of an access type may designate the same object, |
| 661 |
and components of one object may designate the same or other |
| 662 |
objects. Both the elements in such linked data structures |
| 663 |
and their relation to other elements can be altered during |
| 664 |
program execution. Access types also permit references to |
| 665 |
subprograms to be stored, passed as parameters, and |
| 666 |
ultimately dereferenced as part of an indirect call. |
| 667 |
|
| 668 |
Private types permit restricted views of a type. A private |
| 669 |
type can be defined in a package so that only the logically |
| 670 |
necessary properties are made visible to the users of the |
| 671 |
type. The full structural details that are externally |
| 672 |
irrelevant are then only available within the package and |
| 673 |
any child units. |
| 674 |
|
| 675 |
From any type a new type may be defined by derivation. A type, |
| 676 |
together with its derivatives (both direct and indirect) |
| 677 |
form a derivation class. Class-wide operations may be |
| 678 |
defined that accept as a parameter an operand of any type in |
| 679 |
a derivation class. For record and private types, the derivatives may |
| 680 |
be extensions of the parent type. Types that support these |
| 681 |
object-oriented capabilities of class-wide operations and type extension |
| 682 |
must be tagged, so that |
| 683 |
the specific type of an operand within a derivation class can |
| 684 |
be identified at run time. When an operation of a tagged |
| 685 |
type is applied to an operand whose specific type is not |
| 686 |
known until run time, implicit dispatching is performed |
| 687 |
based on the tag of the operand. |
| 688 |
|
| 689 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 690 |
@ChgAdded{Version=[2],Text=[ |
| 691 |
Interface types provide abstract models from which other interfaces and |
| 692 |
types may be composed and derived. This provides a reliable form of multiple |
| 693 |
inheritance. Interface types may also be implemented by |
| 694 |
task types and protected types thereby enabling concurrent programming and |
| 695 |
inheritance to be merged.]} |
| 696 |
|
| 697 |
The concept of a type is further refined by the concept of a |
| 698 |
subtype, whereby a user can constrain the set of allowed |
| 699 |
values of a type. Subtypes can be used to define subranges |
| 700 |
of scalar types, arrays with a limited set of index values, |
| 701 |
and records and private types with particular discriminant |
| 702 |
values. |
| 703 |
|
| 704 |
@keepnext@i(Other Facilities) |
| 705 |
|
| 706 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 707 |
@Chg{Version=[2],New=[Aspect],Old=[Representation]} clauses can be |
| 708 |
used to specify the mapping |
| 709 |
between types and features of an underlying machine. For |
| 710 |
example, the user can specify that objects of a given type |
| 711 |
must be represented with a given number of bits, or that the |
| 712 |
components of a record are to be represented using a given |
| 713 |
storage layout. Other features allow the controlled use of |
| 714 |
low level, nonportable, or implementation-dependent aspects, |
| 715 |
including the direct insertion of machine code. |
| 716 |
|
| 717 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 718 |
@ChgAdded{Version=[5],Text=[Aspect clauses can also be used to specify more |
| 719 |
abstract properties of program entities, such as the pre- and postconditions of |
| 720 |
a subprogram, or the invariant for a private type. Additional aspects are |
| 721 |
specifiable to allow user-defined types to use constructs of the language, such |
| 722 |
as literals, aggregates, or indexing, normally reserved for particular |
| 723 |
language-defined categories of types, such as numeric types, record types, or |
| 724 |
array types.]} |
| 725 |
|
| 726 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 727 |
The predefined environment of the language provides |
| 728 |
for input-output and other capabilities @Chg{Version=[2],New=[],Old=[(such |
| 729 |
as string manipulation and random number generation) ]}by means of |
| 730 |
standard library packages. |
| 731 |
Input-output is supported for |
| 732 |
values of user-defined as well as of predefined types. |
| 733 |
Standard means of representing values in display form are |
| 734 |
also provided.@Chg{Version=[2],New=[],Old=[ Other standard library packages are defined |
| 735 |
in annexes of the standard to support systems with |
| 736 |
specialized requirements.]} |
| 737 |
|
| 738 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 739 |
@Chg{Version=[2],New=[The predefined standard library packages provide |
| 740 |
facilities such as string manipulation, containers of various kinds (vectors, |
| 741 |
lists, maps, etc.), mathematical functions, random number generation, and access |
| 742 |
to the execution environment.],Old=[]} |
| 743 |
|
| 744 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 745 |
@Chg{Version=[2],New=[The specialized annexes define further predefined library |
| 746 |
packages and facilities with emphasis on areas such as real-time |
| 747 |
scheduling, interrupt handling, distributed systems, numerical computation, and |
| 748 |
high-integrity systems.],Old=[]} |
| 749 |
|
| 750 |
Finally, the language provides a powerful means of |
| 751 |
parameterization of program units, called generic program |
| 752 |
units. The generic parameters can be types and subprograms |
| 753 |
(as well as objects and packages) and so allow general |
| 754 |
algorithms and data structures to be defined that are |
| 755 |
applicable to all types of a given class. |
| 756 |
@end{Intro} |
| 757 |
|
| 758 |
@SubHeading{Language Changes} |
| 759 |
|
| 760 |
@begin{Intro} |
| 761 |
|
| 762 |
@begin{NotIso} |
| 763 |
@ChgAdded{Version=[2],Noprefix=[T],Noparanum=[T],Text=[@Shrink{@i<Paragraphs 44 |
| 764 |
through 57 have been removed as they described differences from the first edition |
| 765 |
of Ada (Ada 83).>}]}@Comment{This message should be |
| 766 |
deleted if the paragraphs are ever renumbered.} |
| 767 |
@end{NotIso} |
| 768 |
|
| 769 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 770 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 771 |
@ChgDeleted{Version=[3],Type=[Leading],Text=[This @Chg{Version=[2],New=[amended ],Old=[]}International Standard |
| 772 |
@Chg{Version=[2],New=[updates the edition of 1995 which replaced], |
| 773 |
Old=[replaces]} the first edition of 1987. |
| 774 |
In @Chg{Version=[2],New=[the 1995],Old=[this]} edition, the following major |
| 775 |
language changes @Chg{Version=[2],New=[were],Old=[have been]} incorporated:]} |
| 776 |
@begin{Itemize} |
| 777 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 778 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 779 |
@ChgDeleted{Version=[3],Text=[Support for standard 8-bit and 16-bit |
| 780 |
character@Chg{Version=[2],New=[s was added],Old=[ sets]}. |
| 781 |
See @Chg{Version=[2],New=[clauses @RefSecNum{Character Set}],Old=[Section 2]}, |
| 782 |
@RefSecNum{Character Types}, |
| 783 |
@RefSecNum{String Types}, |
| 784 |
@RefSecNum{The Package Standard}, |
| 785 |
@RefSecNum{Character Handling}, and |
| 786 |
@RefSecNum{String Handling}.]} |
| 787 |
|
| 788 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 789 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 790 |
@ChgDeleted{Version=[3],Text=[@Chg{Version=[2],New=[The type model was extended to include facilities |
| 791 |
for o],Old=[O]}bject-oriented programming |
| 792 |
with @Chg{Version=[2],New=[dynamic],Old=[run-time]} polymorphism. |
| 793 |
See the discussions of classes, derived types, tagged types, |
| 794 |
record extensions, and private extensions |
| 795 |
in clauses @RefSecNum{Derived Types and Classes}, |
| 796 |
@RefSecNum{Tagged Types and Type Extensions}, and |
| 797 |
@RefSecNum{Private Types and Private Extensions}. |
| 798 |
@Chg{Version=[2],New=[Additional],Old=[See also the new]} forms of generic |
| 799 |
formal parameters @Chg{Version=[2],New=[were],Old=[that are]} allowed |
| 800 |
@Chg{Version=[2],New=[as described in clauses |
| 801 |
@RefSecNum{Formal Private and Derived Types} and @RefSecNum{Formal Packages}], |
| 802 |
Old=[by @RefSec{Formal Private and Derived Types} and @RefSec{Formal Packages}]}.]} |
| 803 |
|
| 804 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 805 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 806 |
@ChgDeleted{Version=[3],Text=[Access types @Chg{Version=[2],New=[were],Old=[have been]} extended to allow |
| 807 |
an access value to designate a subprogram or an object declared by an |
| 808 |
object declaration @Chg{Version=[2],New=[],Old=[(]}as opposed to just |
| 809 |
@Chg{Version=[2],New=[an object ],Old=[a heap-]}allocated |
| 810 |
@Chg{Version=[2],New=[on a heap],Old=[object)]}. |
| 811 |
See @Chg{Version=[2],New=[clause ],Old=[]}@RefSecNum{Access Types}.]} |
| 812 |
|
| 813 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 814 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 815 |
@ChgDeleted{Version=[3],Text=[Efficient data-oriented synchronization @Chg{Version=[2],New=[was], |
| 816 |
Old=[is]} provided @Chg{Version=[2],New=[by the introduction of], |
| 817 |
Old=[via]} protected types. See @Chg{Version=[2], |
| 818 |
New=[clause @RefSecNum{Protected Units and Protected Objects}],Old=[Section 9]}.]} |
| 819 |
|
| 820 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 821 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 822 |
@ChgDeleted{Version=[3],Text=[The library @Chg{Version=[2],New=[structure was extended to allow |
| 823 |
library units to],Old=[units of a library may]} be organized into a |
| 824 |
hierarchy of parent and child units. |
| 825 |
See @Chg{Version=[2], New=[clause @RefSecNum{Separate Compilation}], |
| 826 |
Old=[Section 10]}.]} |
| 827 |
|
| 828 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 829 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 830 |
@ChgDeleted{Version=[3],Text=[Additional support |
| 831 |
@Chg{Version=[2],New=[was],Old=[has been]} added for interfacing to other |
| 832 |
languages. See @RefSecNum{Interface to Other Languages}.]} |
| 833 |
|
| 834 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 835 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 836 |
@ChgDeleted{Version=[3],Type=[Leading],Text=[The Specialized Needs Annexes |
| 837 |
@Chg{Version=[2],New=[were],Old=[have been]} added |
| 838 |
to provide specific support for certain application areas:]} |
| 839 |
@begin{InnerItemize} |
| 840 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 841 |
@ChgDeleted{Version=[3],Text=[@RefSec{Systems Programming}]} |
| 842 |
|
| 843 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 844 |
@ChgDeleted{Version=[3],Text=[@RefSec{Real-Time Systems}]} |
| 845 |
|
| 846 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 847 |
@ChgDeleted{Version=[3],Text=[@RefSec{Distributed Systems}]} |
| 848 |
|
| 849 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 850 |
@ChgDeleted{Version=[3],Text=[@RefSec{Information Systems}]} |
| 851 |
|
| 852 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 853 |
@ChgDeleted{Version=[3],Text=[@RefSec{Numerics}]} |
| 854 |
|
| 855 |
@ChgRef{Version=[3],Kind=[DeletedNoDelMsg]} |
| 856 |
@ChgDeleted{Version=[3],Text=[@RefSec{High Integrity Systems}]} |
| 857 |
@end{InnerItemize} |
| 858 |
@end{Itemize} |
| 859 |
|
| 860 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 861 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 862 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 863 |
@ChgAdded{Version=[2],Text=[@Chg{Version=[3],New=[This International Standard |
| 864 |
replaces the @Chg{Version=[5],New=[third],Old=[second]} edition of |
| 865 |
@Chg{Version=[5],New=[2012],Old=[1995]}. It],Old=[Amendment 1]} modifies the |
| 866 |
@Chg{Version=[3],New=[previous edition],Old=[1995 International Standard]} by |
| 867 |
making changes and additions that improve the capability of the language and |
| 868 |
the reliability of programs written in the |
| 869 |
language.@Chg{Version=[5],New=[],Old=[@Chg{Version=[3],New=[ This |
| 870 |
edition incorporates the changes from Amendment 1 (ISO/IEC 8652:1995:AMD 1:2007), |
| 871 |
which],Old=[In particular the changes]} |
| 872 |
were designed to improve the portability of programs, interfacing to other |
| 873 |
languages, and both the object-oriented and real-time capabilities.]}]} |
| 874 |
|
| 875 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 876 |
@ChgRef{Version=[3],Kind=[RevisedAdded],ARef=[AI05-0299-1]} |
| 877 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 878 |
@ChgAdded{Version=[2],Type=[Leading],Text=[@Chg{Version=[3],New=[Significant], |
| 879 |
Old=[The following significant]} changes@Chg{Version=[5],New=[ in this edition |
| 880 |
are],Old=[@Chg{Version=[3],New=[ originating |
| 881 |
in Amendment 1],Old=[with respect to the 1995 edition]} are incorporated]}:]} |
| 882 |
|
| 883 |
@begin{Itemize} |
| 884 |
@ChgRef{Version=[2],Kind=[Added]} |
| 885 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 886 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 887 |
@Chg{Version=[5],New=[Improved support for parallel execution is provided via |
| 888 |
the introduction of parallel loops, parallel blocks, parallel container |
| 889 |
iteration, and parallel reduction.],Old=[@Chg{Version=[2],New=[Support for |
| 890 |
program text is extended to cover the |
| 891 |
entire ISO/IEC 10646:2003 repertoire. Execution support now includes the |
| 892 |
32-bit character set. See @Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 893 |
@RefSecNum{Character Set}, |
| 894 |
@RefSecNum{Character Types}, |
| 895 |
@RefSecNum{String Types}, |
| 896 |
@RefSecNum{The Package Standard}, |
| 897 |
@RefSecNum{Character Handling}, and |
| 898 |
@RefSecNum{String Handling}.],Old=[]}]} |
| 899 |
|
| 900 |
@ChgRef{Version=[2],Kind=[Added]} |
| 901 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 902 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 903 |
@Chg{Version=[5],New=[More precise specification of subprogram interfaces is |
| 904 |
supported via the new aspects Global, Global'Class, and Nonblocking. The Global |
| 905 |
aspects, in particular, help to determine whether two constructs can |
| 906 |
safely execute in parallel.],Old=[@Chg{Version=[2],New=[The |
| 907 |
object-oriented model has been improved by the addition of an |
| 908 |
interface facility which provides multiple inheritance and additional |
| 909 |
flexibility for type extensions. See @Chg{Version=[3],New=[subclauses],Old=[clauses]} @RefSecNum{Derived Types and Classes}, |
| 910 |
@RefSecNum{Tagged Types and Type Extensions}, and |
| 911 |
@RefSecNum{Private Types and Private Extensions}. An |
| 912 |
alternative notation for calling operations more akin to that used in |
| 913 |
other languages has also been added. See @Chg{Version=[3],New=[subclause],Old=[clause]} @RefSecNum{Selected Components}.],Old=[]}]} |
| 914 |
|
| 915 |
@ChgRef{Version=[2],Kind=[Added]} |
| 916 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 917 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 918 |
@Chg{Version=[5],New=[Pre and Post aspects may now be specified for access-to-subprogram |
| 919 |
types and for generic formal subprograms; a postcondition for the default |
| 920 |
initialization of a type may be specified using the new |
| 921 |
Default_Initial_Condition aspect.],Old=[@Chg{Version=[2],New=[Access |
| 922 |
types have been further extended to unify properties such as |
| 923 |
the ability to access constants and to exclude null values. See clause |
| 924 |
@RefSecNum{Access Types}. Anonymous access types are now permitted more |
| 925 |
freely and anonymous access-to-subprogram types are introduced. See |
| 926 |
@Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 927 |
@RefSecNum{Objects and Named Numbers}, @RefSecNum{Array Types}, |
| 928 |
@RefSecNum{Access Types}, and @RefSecNum{Object Renaming Declarations}.],Old=[]}]} |
| 929 |
|
| 930 |
@ChgRef{Version=[2],Kind=[Added]} |
| 931 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 932 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 933 |
@Chg{Version=[5],New=[The behavior of many predefined container operations is now more |
| 934 |
precisely specified by using pre- and postcondition specifications |
| 935 |
instead of English descriptions; a stable view for most containers is |
| 936 |
introduced to support more efficient iteration.],Old=[@Chg{Version=[2],New=[The |
| 937 |
control of structure and visibility has been enhanced to |
| 938 |
permit mutually dependent references between units and finer control |
| 939 |
over access from the private part of a package. See @Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 940 |
@RefSecNum{Incomplete Type Declarations} and @RefSecNum{Context Clauses - With Clauses}. |
| 941 |
In addition, limited types have been made more useful by the |
| 942 |
provision of aggregates, constants, and constructor functions. See |
| 943 |
@Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 944 |
@RefSecNum{Aggregates}, @RefSecNum{Return Statements}, |
| 945 |
and @RefSecNum{Limited Types}.],Old=[]}]} |
| 946 |
|
| 947 |
@ChgRef{Version=[2],Kind=[Added]} |
| 948 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 949 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 950 |
@Chg{Version=[5],New=[More flexible uses of static expressions are supported |
| 951 |
via the introduction of static expression functions along with fewer |
| 952 |
restrictions on static strings.],Old=[@Chg{Version=[2],New=[The |
| 953 |
predefined environment has been extended to include additional time |
| 954 |
and calendar operations, |
| 955 |
improved string handling, a comprehensive container library, file and |
| 956 |
directory management, and access to environment variables. See |
| 957 |
@Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 958 |
@RefSecNum{Formatting, Time Zones, and other operations for Time}, |
| 959 |
@RefSecNum{String Handling}, |
| 960 |
@RefSecNum{The Package Directories}, |
| 961 |
@RefSecNum{The Package Environment_Variables}, |
| 962 |
and @RefSecNum{Containers}.],Old=[]}]} |
| 963 |
|
| 964 |
@ChgRef{Version=[2],Kind=[Added]} |
| 965 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 966 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 967 |
@Chg{Version=[5],New=[The Image attribute is supported for nonscalar types, |
| 968 |
and a user-specifiable attribute Put_Image is provided, which determines |
| 969 |
the value of the Image attribute for a user-defined type.],Old=[@Chg{Version=[2],New=[Two |
| 970 |
of the Specialized Needs Annexes have been considerably enhanced:],Old=[]}]} |
| 971 |
@begin{InnerItemize} |
| 972 |
@ChgRef{Version=[2],Kind=[Added]} |
| 973 |
@ChgRef{Version=[5],Kind=[DeletedAdded]} |
| 974 |
@Chg{Version=[5],New=[],Old=[@Chg{Version=[2],New=[ |
| 975 |
The Real-Time Systems Annex now includes the Ravenscar profile for |
| 976 |
high-integrity systems, further dispatching policies such as Round Robin |
| 977 |
and Earliest Deadline First, support for timing events, and support for |
| 978 |
control of CPU time utilization. See |
| 979 |
@Chg{Version=[3],New=[subclauses],Old=[clauses]} @RefSecNum{Priority Scheduling}, |
| 980 |
@RefSecNum{The Ravenscar and Jorvik Profiles}, |
| 981 |
@RefSecNum{Execution Time}, and |
| 982 |
@RefSecNum{Timing Events}.],Old=[]}]} |
| 983 |
|
| 984 |
@ChgRef{Version=[2],Kind=[Added]} |
| 985 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 986 |
@ChgRef{Version=[5],Kind=[DeletedAdded]} |
| 987 |
@Chg{Version=[5],New=[],Old=[@Chg{Version=[2],New=[ |
| 988 |
The Numerics Annex now includes support for real and complex vectors |
| 989 |
and matrices as previously defined in ISO/IEC 13813:1997 plus further basic |
| 990 |
operations for linear algebra. |
| 991 |
See @Chg{Version=[3],New=[subclause],Old=[clause]} @RefSecNum{Vector and Matrix Manipulation}.],Old=[]}]} |
| 992 |
@end{InnerItemize} |
| 993 |
|
| 994 |
@ChgRef{Version=[2],Kind=[Added]} |
| 995 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 996 |
@ChgRef{Version=[5],Kind=[RevisedAdded],ARef=[AI12-0313-1]} |
| 997 |
@Chg{Version=[5],New=[The use of numeric and string literals is generalized to |
| 998 |
support other sorts of types, via the new Integer_Literal, Real_Literal, and |
| 999 |
String_Literal aspects.],Old=[@Chg{Version=[2],New=[ |
| 1000 |
The overall reliability of the language has been enhanced by |
| 1001 |
a number of improvements. These include new syntax which detects |
| 1002 |
accidental overloading, as well as pragmas for making assertions and |
| 1003 |
giving better control over the suppression of checks. See @Chg{Version=[3],New=[subclauses],Old=[clauses]} |
| 1004 |
@RefSecNum{Subprogram Declarations}, |
| 1005 |
@RefSecNum{Pragmas Assert and Assertion_Policy}, and |
| 1006 |
@RefSecNum{Suppressing Checks}.],Old=[]}]} |
| 1007 |
|
| 1008 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1009 |
@ChgAdded{Version=[5],Text=[Array and record aggregates are made more flexible: |
| 1010 |
index parameters are allowed in an array aggregate to define the components as a |
| 1011 |
function of their array index; discriminants can be defined more flexibly within |
| 1012 |
an aggregate for a variant record type.]} |
| 1013 |
|
| 1014 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1015 |
@ChgAdded{Version=[5],Text=[New types of aggregates are provided: delta |
| 1016 |
aggregates to allow the construction of a new object by incremental updates to |
| 1017 |
an existing object; container aggregates to allow construction of an object of a |
| 1018 |
container type by directly specifying its elements.]} |
| 1019 |
|
| 1020 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1021 |
@ChgAdded{Version=[5],Text=[A shorthand is provided, using the token '@@', to |
| 1022 |
refer to the target of an assignment statement in the expression defining its |
| 1023 |
new value.]} |
| 1024 |
|
| 1025 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1026 |
@ChgAdded{Version=[5],Text=[Declare expressions are provided which permit the |
| 1027 |
definition and use of local constants or renamings, to allow an expression used |
| 1028 |
within an aspect specification to be more concise and readable.]} |
| 1029 |
|
| 1030 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1031 |
@ChgAdded{Version=[5],Text=[Support for lightweight iteration is added via the |
| 1032 |
introduction of procedural iterators.]} |
| 1033 |
|
| 1034 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1035 |
@ChgAdded{Version=[5],Text=[Support for the map-reduce programming strategy is |
| 1036 |
added via the introduction of reduction expressions.]} |
| 1037 |
|
| 1038 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1039 |
@ChgAdded{Version=[5],Text=[For constructs that use iterators of any sort, a |
| 1040 |
filter may be specified that restricts the elements produced by the iteration to |
| 1041 |
those that satisfy the condition of the filter.]} |
| 1042 |
|
| 1043 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1044 |
@ChgAdded{Version=[5],Text=[Predefined packages supporting arbitrary-precision |
| 1045 |
integer and real arithmetic are provided.]} |
| 1046 |
|
| 1047 |
@ChgRef{Version=[5],Kind=[Added],ARef=[AI12-0313-1]} |
| 1048 |
@ChgAdded{Version=[5],Text=[The Jorvik profile is introduced to support hard |
| 1049 |
real-time applications that need to go beyond the restrictions of the Ravenscar |
| 1050 |
profile.]} |
| 1051 |
|
| 1052 |
@end{Itemize} |
| 1053 |
|
| 1054 |
@ChgRef{Version=[3],Kind=[Added],ARef=[AI05-0245-1]} |
| 1055 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1056 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[In addition, this third edition makes |
| 1057 |
enhancements to address two important issues, namely, the particular problems of |
| 1058 |
multiprocessor architectures, and the need to further increase the capabilities |
| 1059 |
regarding assertions for correctness. It also makes additional changes and |
| 1060 |
additions that improve the capability of the language and the reliability of |
| 1061 |
programs written in the language.],Old=[]}]} |
| 1062 |
|
| 1063 |
@ChgNote{The original "Amendment 2" version of this text follows: |
| 1064 |
Amendment 2 modifies the 1995 International Standard |
| 1065 |
by making changes and additions that improve the capability of the language and |
| 1066 |
the reliability of programs written in the language. In particular, enhancements |
| 1067 |
are made to address two important issues, namely, the particular problems of |
| 1068 |
multiprocessor architectures, and the need to further increase the capabilities |
| 1069 |
regarding assertions for correctness.} |
| 1070 |
|
| 1071 |
@ChgRef{Version=[3],Kind=[Added],ARef=[AI05-0245-1],ARef=[AI05-0299-1]} |
| 1072 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1073 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[The following significant changes |
| 1074 |
with respect to the 1995 edition as amended by Amendment 1 are incorporated:],Old=[]}]} |
| 1075 |
|
| 1076 |
@begin{Itemize} |
| 1077 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1078 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1079 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[New syntax (the aspect specification) is introduced |
| 1080 |
to enable properties to be specified for various entities in a more structured |
| 1081 |
manner than through pragmas. See subclause @RefSecNum{Aspect Specifications}.],Old=[]}]} |
| 1082 |
|
| 1083 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1084 |
@ChgRef{Version=[4],Kind=[RevisedAdded],ARef=[AI12-0141-1]} |
| 1085 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1086 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[The concept of assertions introduced in the 2005 |
| 1087 |
edition is extended with the ability to specify preconditions and postconditions |
| 1088 |
for subprograms, and invariants for private types@Chg{Version=[4],New=[ and |
| 1089 |
interfaces],Old=[]}. The concept of constraints in |
| 1090 |
defining subtypes is supplemented with subtype predicates that enable subsets |
| 1091 |
to be specified other than as simple ranges. These properties are all indicated |
| 1092 |
using aspect specifications. See subclauses @RefSecNum{Subtype Predicates}, |
| 1093 |
@RefSecNum{Preconditions and Postconditions}, and @RefSecNum{Type Invariants}.],Old=[]}]} |
| 1094 |
|
| 1095 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1096 |
@ChgRef{Version=[4],Kind=[RevisedAdded],ARef=[AI12-0141-1]} |
| 1097 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1098 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[New forms of expressions are introduced. These are |
| 1099 |
if expressions, case expressions, quantified expressions, |
| 1100 |
@Chg{Version=[4],New=[],Old=[and ]}expression |
| 1101 |
functions@Chg{Version=[4],New=[, and raise expressions],Old=[]}. As well as |
| 1102 |
being useful for programming in general by avoiding the |
| 1103 |
introduction of unnecessary assignments, they are especially valuable in |
| 1104 |
conditions and invariants since they avoid the need to introduce auxiliary |
| 1105 |
functions. See subclauses @RefSecNum{Conditional Expressions}, |
| 1106 |
@RefSecNum{Quantified Expressions}, |
| 1107 |
@Chg{Version=[4],New=[],Old=[and ]}@RefSecNum{Expression Functions}@Chg{Version=[4],New=[, |
| 1108 |
and @RefSecNum{Raise Statements and Raise Expressions}],Old=[]}. |
| 1109 |
Membership tests are also made more flexible. See subclauses |
| 1110 |
@RefSecNum{Expressions} and @RefSecNum{Relational Operators and Membership Tests}.],Old=[]}]} |
| 1111 |
|
| 1112 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1113 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1114 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[A number of changes are made to subprogram parameters. |
| 1115 |
Functions may now have parameters of all modes. In order to mitigate consequent |
| 1116 |
(and indeed existing) problems of inadvertent order dependence, rules are |
| 1117 |
introduced to reduce aliasing. A parameter may now be explicitly marked as |
| 1118 |
aliased and the type of a parameter may be incomplete in |
| 1119 |
certain circumstances. See subclauses @RefSecNum{Incomplete Type Declarations}, |
| 1120 |
@RefSecNum{Subprogram Declarations}, and @RefSecNum{Parameter Associations}.],Old=[]}]} |
| 1121 |
|
| 1122 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1123 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1124 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[The use of access types is now more flexible. The |
| 1125 |
rules for accessibility and certain conversions are improved. See subclauses |
| 1126 |
@RefSecNum{Operations of Access Types}, @RefSecNum{Relational Operators and Membership Tests}, |
| 1127 |
@RefSecNum{Type Conversions}, and @RefSecNum{The Context of Overload Resolution}. |
| 1128 |
Furthermore, better control of storage pools is |
| 1129 |
provided. See subclause @RefSecNum{Storage Subpools}.],Old=[]}]} |
| 1130 |
|
| 1131 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1132 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1133 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[The Real-Time Systems Annex now includes facilities |
| 1134 |
for defining domains of processors and assigning tasks to them. Improvements are |
| 1135 |
made to scheduling and budgeting facilities. See subclauses @RefSecNum{Synchronous Barriers}, |
| 1136 |
@RefSecNum{Execution Time}, and @RefSecNum{Multiprocessor Implementation}.],Old=[]}]} |
| 1137 |
|
| 1138 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1139 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1140 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[A number of important improvements are made to the |
| 1141 |
standard library. These include packages for conversions between strings and UTF |
| 1142 |
encodings, and classification functions for wide and wide wide characters. |
| 1143 |
Internationalization is catered for by a package giving locale information. See |
| 1144 |
subclauses @RefSecNum{Character Handling}, @RefSecNum{String Encoding}, and |
| 1145 |
@RefSecNum{The Package Locales}. The container library is extended to include |
| 1146 |
bounded forms of the existing containers and new containers for indefinite |
| 1147 |
objects, multiway trees, and queues. See subclause @RefSecNum{Containers}.],Old=[]}]} |
| 1148 |
|
| 1149 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1150 |
@ChgRef{Version=[5],Kind=[DeletedAddedNoDelMsg],ARef=[AI12-0313-1]} |
| 1151 |
@ChgDeleted{Version=[5],Text=[@Chg{Version=[3],New=[Finally, certain features are added primarily to |
| 1152 |
ease the use of containers, such as the ability to iterate over all elements in a |
| 1153 |
container without having to encode the iteration. These can also be used for |
| 1154 |
iteration over arrays, and within quantified expressions. See |
| 1155 |
subclauses @RefSecNum{User-Defined References}, |
| 1156 |
@RefSecNum{User-Defined Indexing}, @RefSecNum{User-Defined Iterator Types}, |
| 1157 |
and @RefSecNum{Generalized Loop Iteration}.],Old=[]}]} |
| 1158 |
@end{Itemize} |
| 1159 |
@end{Intro} |
| 1160 |
|
| 1161 |
@NewPage |
| 1162 |
@SubHeading(Instructions for Comment Submission) |
| 1163 |
|
| 1164 |
@begin{Intro} |
| 1165 |
|
| 1166 |
|
| 1167 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 1168 |
@Defn{instructions for comment submission} |
| 1169 |
@Defn{comments, instructions for submission} |
| 1170 |
Informal comments on this International Standard may be sent via |
| 1171 |
e-mail to @Chg{New=[@b(ada-comment@@ada-auth.org)], |
| 1172 |
Old=[@b(ada-comment@@sw-eng.falls-church.va.us)]}. |
| 1173 |
If appropriate, the Project Editor will initiate |
| 1174 |
the defect correction procedure. |
| 1175 |
|
| 1176 |
|
| 1177 |
Comments should use the following format: |
| 1178 |
@begin(display) |
| 1179 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 1180 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 1181 |
@ChgRef{Version=[5],Kind=[Revised]} |
| 1182 |
@TabSet(L6)@\@b(!topic) @i[Title summarizing comment] |
| 1183 |
@\@b(!reference) @Chg{Version=[2],New=[Ada @Chg{Version=[3],New=[@Chg{Version=[5],New=[202x],Old=[2012]}],Old=[2005]} RM],Old=[RM95-]}@i{ss.ss(pp)} |
| 1184 |
@\@b(!from) @i{Author Name yy-mm-dd} |
| 1185 |
@\@b(!keywords) @i{keywords related to topic} |
| 1186 |
@\@b(!discussion) |
| 1187 |
@comment{Blank line} |
| 1188 |
@\@i{text of discussion} |
| 1189 |
@end(display) |
| 1190 |
|
| 1191 |
@ChgRef{Version=[3],Kind=[Revised]} |
| 1192 |
where @i(ss.ss) is the @Chg{Version=[3],New=[],Old=[section, ]}clause or |
| 1193 |
subclause number, @i(pp) is the paragraph number where applicable, |
| 1194 |
and @i(yy-mm-dd) is the date the comment was sent. |
| 1195 |
The date is optional, as is the @b(!keywords) line. |
| 1196 |
|
| 1197 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 1198 |
@Chg{New=[], Old=[Multiple comments per e-mail message are acceptable.]} |
| 1199 |
Please use a descriptive @lquotes@;Subject@rquotes@; in your e-mail |
| 1200 |
message@Chg{New=[, and limit each message to a single comment.], Old=[.]} |
| 1201 |
|
| 1202 |
When correcting typographical errors or making minor wording |
| 1203 |
suggestions, please put the correction directly as the topic of the |
| 1204 |
comment; use square brackets [ ] to indicate text to be omitted and |
| 1205 |
curly braces { } to indicate text to be added, and provide enough |
| 1206 |
context to make the nature of the suggestion self-evident or put |
| 1207 |
additional information in the body of the comment, for example: |
| 1208 |
@begin{Display} |
| 1209 |
@TabSet(L6)@\@b(!topic) [c]{C}haracter |
| 1210 |
@\@b(!topic) it[']s meaning is not defined |
| 1211 |
@end{Display} |
| 1212 |
|
| 1213 |
|
| 1214 |
Formal requests for interpretations and for reporting defects in this |
| 1215 |
International Standard may be made in accordance with the ISO/IEC |
| 1216 |
JTC 1 Directives and the ISO/IEC JTC 1/SC 22 policy for interpretations. |
| 1217 |
National Bodies may submit a Defect Report to ISO/IEC JTC 1/SC 22 for resolution |
| 1218 |
under the JTC 1 procedures. |
| 1219 |
A response will be provided and, if appropriate, |
| 1220 |
a Technical Corrigendum will be issued in accordance with the procedures. |
| 1221 |
|
| 1222 |
|
| 1223 |
@end{Intro} |
| 1224 |
|
| 1225 |
@begin{NotISO} |
| 1226 |
@NewPage |
| 1227 |
@AddedSubHeading{Version=[3],Acknowledgements for the Ada 83 edition} |
| 1228 |
|
| 1229 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1230 |
@ChgAdded{Version=[3],Text=[Ada is the result of a collective effort to design a |
| 1231 |
common language for programming large scale and real-time systems.]} |
| 1232 |
|
| 1233 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1234 |
@ChgAdded{Version=[3],Text=[The common high order language program began in |
| 1235 |
1974. The requirements of the United States Department of Defense were |
| 1236 |
formalized in a series of documents which were extensively reviewed by the |
| 1237 |
Services, industrial organizations, universities, and foreign military |
| 1238 |
departments. The Ada language was designed in accordance with the final (1978) |
| 1239 |
form of these requirements, embodied in the Steelman specification.]} |
| 1240 |
|
| 1241 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1242 |
@ChgAdded{Version=[3],Text=[The Ada design team was led by Jean D. Ichbiah and |
| 1243 |
has included Bernd Krieg-Brueckner, Brian A. Wichmann, Henry F. Ledgard, |
| 1244 |
Jean-Claude Heliard, Jean-Loup Gailly, Jean-Raymond Abrial, John G.P. Barnes, |
| 1245 |
Mike Woodger, Olivier Roubine, Paul N. Hilfinger, and Robert Firth.]} |
| 1246 |
|
| 1247 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1248 |
@ChgAdded{Version=[3],Text=[At various stages of the project, several people |
| 1249 |
closely associated with the design team made major contributions. They include |
| 1250 |
J.B. Goodenough, R.F. Brender, M.W. Davis, G. Ferran, K. Lester, L. MacLaren, E. |
| 1251 |
Morel, I.R. Nassi, I.C. Pyle, S.A. Schuman, and S.C. Vestal.]} |
| 1252 |
|
| 1253 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1254 |
@ChgAdded{Version=[3],Text=[Two parallel efforts that were started in the second |
| 1255 |
phase of this design had a deep influence on the language. One was the |
| 1256 |
development of a formal definition using denotational semantics, with the |
| 1257 |
participation of V. Donzeau-Gouge, G. Kahn, and B. Lang. The other was the |
| 1258 |
design of a test translator with the participation of K. Ripken, P. Boullier, P. |
| 1259 |
Cadiou, J. Holden, J.F. Hueras, R.G. Lange, and D.T. Cornhill. The entire effort |
| 1260 |
benefitted from the dedicated assistance of Lyn Churchill and Marion Myers, and |
| 1261 |
the effective technical support of B. Gravem, W.L. Heimerdinger, and P. Cleve. |
| 1262 |
H.G. Schmitz served as program manager.]} |
| 1263 |
|
| 1264 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1265 |
@ChgAdded{Version=[3],Text=[Over the five years spent on this project, several |
| 1266 |
intense week-long design reviews were conducted, with the participation of P. |
| 1267 |
Belmont, B. Brosgol, P. Cohen, R. Dewar, A. Evans, G. Fisher, H. Harte, A.L. |
| 1268 |
Hisgen, P. Knueven, M. Kronental, N. Lomuto, E. Ploedereder, G. Seegmueller, V. |
| 1269 |
Stenning, D. Taffs, and also F. Belz, R. Converse, K. Correll, A.N. Habermann, |
| 1270 |
J. Sammet, S. Squires, J. Teller, P. Wegner, and P.R. Wetherall.]} |
| 1271 |
|
| 1272 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1273 |
@ChgAdded{Version=[3],Text=[Several persons had a constructive influence with |
| 1274 |
their comments, criticisms and suggestions. They include P. Brinch Hansen, G. |
| 1275 |
Goos, C.A.R. Hoare, Mark Rain, W.A. Wulf, and also E. Boebert, P. Bonnard, H. |
| 1276 |
Clausen, M. Cox, G. Dismukes, R. Eachus, T. Froggatt, H. Ganzinger, C. Hewitt, |
| 1277 |
S. Kamin, R. Kotler, O. Lecarme, J.A.N. Lee, J.L. Mansion, F. Minel, T. Phinney, |
| 1278 |
J. Roehrich, V. Schneider, A. Singer, D. Slosberg, I.C. Wand, the reviewers of |
| 1279 |
Ada-Europe, AdaTech, Afcet, those of the LMSC review team, and those of the Ada |
| 1280 |
Tokyo Study Group.]} |
| 1281 |
|
| 1282 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1283 |
@ChgAdded{Version=[3],Text=[These reviews and comments, the numerous evaluation |
| 1284 |
reports received at the end of the first and second phase, the nine hundred |
| 1285 |
language issue reports and test and evaluation reports received from fifteen |
| 1286 |
different countries during the third phase of the project, the thousands of |
| 1287 |
comments received during the ANSI Canvass, and the on-going work of the IFIP |
| 1288 |
Working Group 2.4 on system implementation languages and that of the Purdue |
| 1289 |
Europe LTPL-E committee, all had a substantial influence on the final definition |
| 1290 |
of Ada.]} |
| 1291 |
|
| 1292 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1293 |
@ChgAdded{Version=[3],Text=[The Military Departments and Agencies have provided |
| 1294 |
a broad base of support including funding, extensive reviews, and countless |
| 1295 |
individual contributions by the members of the High Order Language Working Group |
| 1296 |
and other interested personnel. In particular, William A. Whitaker provided |
| 1297 |
leadership for the program during the formative stages. David A. Fisher was |
| 1298 |
responsible for the successful development and refinement of the language |
| 1299 |
requirement documents that led to the Steelman specification.]} |
| 1300 |
|
| 1301 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1302 |
@ChgAdded{Version=[3],Text=[The Ada 83 language definition was developed by Cii |
| 1303 |
Honeywell Bull and later Alsys, and by Honeywell Systems and Research Center, |
| 1304 |
under contract to the United States Department of Defense. William E. Carlson |
| 1305 |
and later Larry E. Druffel served as the technical representatives of the United |
| 1306 |
States Government and effectively coordinated the efforts of all participants in |
| 1307 |
the Ada program.]} |
| 1308 |
|
| 1309 |
|
| 1310 |
@SubHeading(Acknowledgements@Chg{Version=[2],New=[ for the Ada 95 edition],Old=[]}) |
| 1311 |
|
| 1312 |
@begin{Intro} |
| 1313 |
|
| 1314 |
This International Standard was prepared by the Ada 9X Mapping/Revision |
| 1315 |
Team based at Intermetrics, Inc., which has included: |
| 1316 |
W. Carlson, Program Manager; |
| 1317 |
T. Taft, Technical Director; |
| 1318 |
J. Barnes (consultant); |
| 1319 |
B. Brosgol (consultant); |
| 1320 |
R. Duff (Oak Tree Software); |
| 1321 |
M. Edwards; |
| 1322 |
C. Garrity; |
| 1323 |
R. Hilliard; |
| 1324 |
O. Pazy (consultant); |
| 1325 |
D. Rosenfeld; |
| 1326 |
L. Shafer; |
| 1327 |
W. White; |
| 1328 |
M. Woodger. |
| 1329 |
|
| 1330 |
The following consultants to the Ada 9X Project |
| 1331 |
contributed to the Specialized Needs Annexes: |
| 1332 |
T. Baker (Real-Time/Systems Programming @em SEI, FSU); |
| 1333 |
K. Dritz (Numerics @em Argonne National Laboratory); |
| 1334 |
A. Gargaro (Distributed Systems @em Computer Sciences); |
| 1335 |
J. Goodenough (Real-Time/Systems Programming @em SEI); |
| 1336 |
J. McHugh (Secure Systems @em consultant); |
| 1337 |
B. Wichmann (Safety-Critical Systems @em NPL: UK). |
| 1338 |
|
| 1339 |
This work was regularly reviewed by |
| 1340 |
the Ada 9X Distinguished Reviewers |
| 1341 |
and the members of the Ada 9X Rapporteur Group (XRG): |
| 1342 |
E. Ploedereder, Chairman of DRs and XRG (University of Stuttgart: Germany); |
| 1343 |
B. Bardin (Hughes); |
| 1344 |
J. Barnes (consultant: UK); @Comment{XRG - UK} |
| 1345 |
B. Brett (DEC); |
| 1346 |
B. Brosgol (consultant); |
| 1347 |
R. Brukardt (RR Software); |
| 1348 |
N. Cohen (IBM); |
| 1349 |
R. Dewar (NYU); |
| 1350 |
G. Dismukes (TeleSoft); |
| 1351 |
A. Evans (consultant); |
| 1352 |
A. Gargaro (Computer Sciences); |
| 1353 |
M. Gerhardt (ESL); |
| 1354 |
J. Goodenough (SEI); @Comment{Also XRG - U.S.} |
| 1355 |
S. Heilbrunner (University of Salzburg: Austria); @Comment{Also XRG - Belgium} |
| 1356 |
P. Hilfinger (UC/Berkeley); @Comment{No longer a DR.} |
| 1357 |
B. K@latin1(228)llberg (CelsiusTech: Sweden); @Comment{XRG - Sweden} |
| 1358 |
M. Kamrad II (Unisys); |
| 1359 |
J. van Katwijk (Delft University of Technology: The Netherlands); @Comment{XRG - The Netherlands} |
| 1360 |
V. Kaufman (Russia); @Comment{XRG - Russia} |
| 1361 |
P. Kruchten (Rational); @Comment{Also XRG - France} |
| 1362 |
R. Landwehr (CCI: Germany); @Comment{Also XRG - Germany} |
| 1363 |
C. Lester (Portsmouth Polytechnic: UK); |
| 1364 |
L. M@latin1(229)nsson (TELIA Research: Sweden); @Comment{No longer a DR.} |
| 1365 |
S. Michell (Multiprocessor Toolsmiths: Canada); @Comment{Also XRG - Canada} |
| 1366 |
M. Mills (US Air Force); |
| 1367 |
D. Pogge (US Navy); |
| 1368 |
K. Power (Boeing); |
| 1369 |
O. Roubine (Verdix: France); |
| 1370 |
A. Strohmeier (Swiss Fed Inst of Technology: Switzerland); @Comment{XRG - Switzerland} |
| 1371 |
W. Taylor (consultant: UK); |
| 1372 |
J. Tokar (Tartan); |
| 1373 |
E. Vasilescu (Grumman); |
| 1374 |
J. Vladik (Prospeks s.r.o.: |
| 1375 |
Czech Republic); @Comment{XRG - Czech Republic} |
| 1376 |
S. Van Vlierberghe (OFFIS: Belgium). @Comment{XRG - Belgium} |
| 1377 |
|
| 1378 |
|
| 1379 |
Other valuable feedback influencing the revision |
| 1380 |
process was provided by |
| 1381 |
the Ada 9X Language Precision |
| 1382 |
Team (Odyssey Research Associates), the Ada 9X User/Implementer |
| 1383 |
Teams (AETECH, Tartan, TeleSoft), the Ada 9X Implementation |
| 1384 |
Analysis Team (New York University) and the Ada community-at-large. |
| 1385 |
|
| 1386 |
|
| 1387 |
Special thanks go to R. Mathis, |
| 1388 |
Convenor of ISO/IEC JTC 1/SC 22 Working Group 9. |
| 1389 |
@Comment{Also XRG - U.S.} |
| 1390 |
|
| 1391 |
|
| 1392 |
The Ada 9X Project was sponsored by the Ada Joint Program Office. |
| 1393 |
Christine M. Anderson at the Air Force Phillips Laboratory (Kirtland |
| 1394 |
AFB, NM) was the project manager. |
| 1395 |
|
| 1396 |
@AddedSubHeading{Version=[1],Acknowledgements for the Corrigendum version} |
| 1397 |
|
| 1398 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1399 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1400 |
@Chg{New=<The editor [R. Brukardt (USA)] would like to thank the many people |
| 1401 |
whose hard work and assistance has made this |
| 1402 |
@Chg{Version=[3],New=[update],Old=[revision]} possible.>,Old=[]} |
| 1403 |
|
| 1404 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1405 |
@Chg{New=[Thanks go out to all of the members of the ISO/IEC JTC 1/SC 22/WG 9 |
| 1406 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 1407 |
corrections was critical to the entire process. Especially valuable |
| 1408 |
contributions came from the chairman of the ARG, E. Ploedereder (Germany), who |
| 1409 |
kept the process moving; J. Barnes (UK) and K. Ishihata (Japan), whose |
| 1410 |
extremely detailed reviews kept the editor on his toes; G. Dismukes (USA), |
| 1411 |
M. Kamrad (USA), P. Leroy (France), S. Michell (Canada), T. Taft (USA), |
| 1412 |
J. Tokar (USA), and other members too numerous to mention.],Old=[]} |
| 1413 |
|
| 1414 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1415 |
@Chg{New=[Special thanks go to R. Duff (USA) for his explanations of the |
| 1416 |
previous system of formatting of these documents during the tedious conversion |
| 1417 |
to more modern formats. Special thanks also go to the convenor of |
| 1418 |
ISO/IEC JTC 1/SC 22/WG 9, J. Moore (USA), without whose help and support |
| 1419 |
the Corrigendum and this consolidated reference manual would not have been possible.],Old=[]} |
| 1420 |
|
| 1421 |
@AddedSubHeading{Version=[2],Acknowledgements for the Amendment 1 version} |
| 1422 |
|
| 1423 |
@ChgRef{Version=[2],Kind=[Added]} |
| 1424 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1425 |
@Chg{Version=[2],New=<The editor [R. Brukardt (USA)] would like to thank the many |
| 1426 |
people whose hard work and assistance has made this |
| 1427 |
@Chg{Version=[3],New=[update],Old=[revision]} possible.>,Old=[]} |
| 1428 |
|
| 1429 |
@ChgRef{Version=[2],Kind=[Added]} |
| 1430 |
@ChgAdded{Version=[2],Text=[Thanks go out to all of the members of the |
| 1431 |
ISO/IEC JTC 1/SC 22/WG 9 |
| 1432 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 1433 |
corrections was critical to the entire process. Especially valuable |
| 1434 |
contributions came from the chairman of the ARG, P. Leroy (France), who kept |
| 1435 |
the process on schedule; J. Barnes (UK) whose careful reviews found many |
| 1436 |
typographical errors; T. Taft (USA), who always seemed to have a suggestion |
| 1437 |
when we were stuck, and who also was usually able to provide the valuable |
| 1438 |
service of explaining why things were as they are; S. Baird (USA), who found |
| 1439 |
many obscure problems with the proposals; and A. Burns (UK), who pushed many of |
| 1440 |
the real-time proposals to completion. Other ARG members who contributed were: |
| 1441 |
R. Dewar (USA), G. Dismukes (USA), R. Duff (USA), K. Ishihata (Japan), S. |
| 1442 |
Michell (Canada), E. Ploedereder (Germany), J.P. Rosen (France), E. Schonberg |
| 1443 |
(USA), J. Tokar (USA), and T. Vardanega (Italy).]} |
| 1444 |
|
| 1445 |
@ChgRef{Version=[2],Kind=[Added]} |
| 1446 |
@Chg{Version=[2],New=[Special thanks go to Ada-Europe and the Ada Resource |
| 1447 |
Association, without whose help and support the Amendment and this consolidated |
| 1448 |
reference manual would not have been possible. M. Heaney (USA) requires special |
| 1449 |
thanks for his tireless work on the containers packages. Finally, special |
| 1450 |
thanks go to the convenor of ISO/IEC JTC 1/SC 22/WG 9, J. Moore (USA), who |
| 1451 |
guided the document through the standardization process.],Old=[]} |
| 1452 |
|
| 1453 |
@end{Intro} |
| 1454 |
|
| 1455 |
@AddedSubHeading{Version=[3],Acknowledgements for the Ada 2012 edition} |
| 1456 |
|
| 1457 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1458 |
@ChgAdded{Version=[3],Text=<The editor [R. Brukardt (USA)] would like to thank the many |
| 1459 |
people whose hard work and assistance has made this revision possible.>} |
| 1460 |
|
| 1461 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1462 |
@ChgAdded{Version=[3],Text=[Thanks go out to all of the members of the |
| 1463 |
ISO/IEC JTC 1/SC 22/WG 9 |
| 1464 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 1465 |
changes was critical to the entire process. Especially valuable |
| 1466 |
contributions came from the chairman of the ARG, E. Schonberg (USA), who |
| 1467 |
guided the work; T. Taft (USA), whose insights broke many logjams, both in |
| 1468 |
design and wording; J. Barnes (UK) whose careful reviews uncovered many |
| 1469 |
editorial errors; S. Baird (USA), who |
| 1470 |
repeatedly found obscure interactions with the proposals that the rest of |
| 1471 |
us missed. Other ARG members who substantially contributed were: |
| 1472 |
A. Burns (UK), J. Cousins (UK), R. Dewar (USA), G. Dismukes (USA), R. Duff (USA), P. Leroy |
| 1473 |
(France), B. Moore (Canada), E. Ploedereder (Germany), J.P. Rosen (France), |
| 1474 |
B. Thomas (USA), and T. Vardanega (Italy).]}@Comment{Pascal Leroy worked |
| 1475 |
extensively on this work in the early days, although he hasn't participated |
| 1476 |
recently.} |
| 1477 |
|
| 1478 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1479 |
@Chg{Version=[3],New=[Special thanks go to Ada-Europe and the Ada Resource |
| 1480 |
Association, without whose help and support this third edition of the |
| 1481 |
Ada Standard would not have been possible. A special mention has to go to |
| 1482 |
A. Beneschan (USA) for his efforts in eliminating sloppiness in our wording. |
| 1483 |
M. Heaney (USA) also deserves a mention for his efforts to improve the |
| 1484 |
containers packages. Finally, special thanks go to the convenor of ISO/IEC JTC |
| 1485 |
1/SC 22/WG 9, J. Tokar (USA), who guided the document through the |
| 1486 |
standardization process.],Old=[]} @Comment{The other financial contributors |
| 1487 |
wanted to remain anonymous, so they are not mentioned here.} |
| 1488 |
|
| 1489 |
@AddedSubHeading{Version=[4],Acknowledgements for the Ada 2012 Corrigendum 1 version} |
| 1490 |
|
| 1491 |
@ChgRef{Version=[4],Kind=[Added]} |
| 1492 |
@ChgAdded{Version=[4],Text=<The editor [R. Brukardt (USA)] would like to thank the many |
| 1493 |
people whose hard work and assistance has made this update possible.>} |
| 1494 |
|
| 1495 |
@ChgRef{Version=[4],Kind=[Added]} |
| 1496 |
@ChgAdded{Version=[4],Text=[Thanks go out to all of the members of the |
| 1497 |
ISO/IEC JTC 1/SC 22/WG 9 |
| 1498 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 1499 |
changes was critical to the entire process. Especially valuable |
| 1500 |
contributions came from the chairman of the ARG, J. Cousins (UK), who |
| 1501 |
guided the work; T. Taft (USA), who seems to have the ability to cut any |
| 1502 |
Gordian knot we encounter in wording; ; J. Barnes (UK) who continues to be |
| 1503 |
able to find editorial errors invisible to most; S. Baird (USA), who |
| 1504 |
so frequently finds obscure interactions that we now have named such things |
| 1505 |
for him. Other ARG members who substantially contributed were: |
| 1506 |
A. Burns (UK), R. Dewar (USA), G. Dismukes (USA), R. Duff (USA), |
| 1507 |
B. Moore (Canada), E. Ploedereder (Germany), J.P. Rosen (France), |
| 1508 |
E. Schonberg (USA), and T. Vardanega (Italy).]} |
| 1509 |
|
| 1510 |
@ChgRef{Version=[4],Kind=[Added]} |
| 1511 |
@Chg{Version=[4],New=[Finally, special thanks go to the convenor of ISO/IEC JTC |
| 1512 |
1/SC 22/WG 9, J. Tokar (USA), who guided the document through the |
| 1513 |
standardization process.],Old=[]} @Comment{The financial contributors |
| 1514 |
wanted to remain anonymous, so they are not mentioned here.} |
| 1515 |
|
| 1516 |
@AddedSubHeading{Version=[5],Acknowledgements for the Ada 202x version} |
| 1517 |
|
| 1518 |
@ChgRef{Version=[5],Kind=[Added]} |
| 1519 |
@ChgAdded{Version=[5],Text=<The editor [R. Brukardt] would like to thank the |
| 1520 |
many people whose hard work and assistance has made this revision possible.>} |
| 1521 |
|
| 1522 |
@ChgRef{Version=[5],Kind=[Added]} |
| 1523 |
@ChgAdded{Version=[5],Text=[Thanks go out to all of the members of the |
| 1524 |
ISO/IEC JTC 1/SC 22/WG 9 Ada Rapporteur Group, whose work in all steps of the |
| 1525 |
process, from determining problems to address, reviewing feature designs, and |
| 1526 |
creating and editing wording changes, was critical to the entire process. |
| 1527 |
Especially valuable contributions came from the chairman of the |
| 1528 |
ARG through June 2018, J. Cousins |
| 1529 |
who guided the work and ensured we followed defined procedures; his replacement |
| 1530 |
as chairman, S. Baird who ably powered through obstacles to complete the work |
| 1531 |
while continuing to find obscure interactions; T. Taft, who often solved |
| 1532 |
difficult problems that had stumped others; B. Moore, whose frequent suggestions |
| 1533 |
for parallel constructs greatly improved the result. |
| 1534 |
Other ARG members who substantially contributed were: |
| 1535 |
R. Amiard, J. Barnes, A. Burns, G. Dismukes, R. Duff, E. Fish, E. Ploedereder, |
| 1536 |
J.P. Rosen, F. Schanda, E. Schonberg, J. Squierk, T. Vardanega, and R. Wai.]} |
| 1537 |
@Comment{E. Fish has 2.0 meeting points as of #62 (Oct 2019). Remove his name if |
| 1538 |
he doesn't get more. C. Dross attended meeting #62 for only a few minutes. Add |
| 1539 |
her name if that changes in the future.} |
| 1540 |
|
| 1541 |
@Comment{Leave the thanks for Pat until we get closer to done. |
| 1542 |
@ChgRef{Version=[5],Kind=[Added]} |
| 1543 |
@Chg{Version=[5],New=[Finally, special thanks go to the convenor of ISO/IEC JTC |
| 1544 |
1/SC 22/WG 9, P. Rogers, who guided the document through the |
| 1545 |
standardization process.],Old=[]} @Comment{The financial contributors |
| 1546 |
wanted to remain anonymous, so they are not mentioned here.}} |
| 1547 |
|
| 1548 |
|
| 1549 |
@NewPage |
| 1550 |
@SubHeading{Changes} |
| 1551 |
|
| 1552 |
@begin{Intro} |
| 1553 |
|
| 1554 |
@Leading@;The International Standard is the same as this version |
| 1555 |
of the Reference Manual, except: |
| 1556 |
@begin{Itemize} |
| 1557 |
This list of Changes is not included in the International Standard. |
| 1558 |
|
| 1559 |
The @lquotes@;Acknowledgements@rquotes@; page |
| 1560 |
is not included in the International Standard. |
| 1561 |
|
| 1562 |
The text in the running headers and footers on each page is slightly |
| 1563 |
different in the International Standard. |
| 1564 |
|
| 1565 |
The title page(s) are different in the International Standard. |
| 1566 |
|
| 1567 |
This document is formatted for 8.5-by-11-inch paper, whereas |
| 1568 |
the International Standard is formatted for A4 paper |
| 1569 |
(210-by-297mm); |
| 1570 |
thus, the page breaks are in different places. |
| 1571 |
|
| 1572 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1573 |
@ChgRef{Version=[3],Kind=[DeletedAdded]} |
| 1574 |
@ChgRef{Version=[4],Kind=[Added]} |
| 1575 |
@ChgAdded{Version=[1],Text=[@Chg{Version=[4],New=[The @lquotes@;Foreword |
| 1576 |
@rquotes clause is different in the International Standard.],Old=[@Chg{Version=[3],New=[],Old=[The @lquotes@;Foreword to this version |
| 1577 |
of the Ada Reference Manual@rquotes clause is not included in the International Standard.]}]}]} |
| 1578 |
|
| 1579 |
@ChgRef{Version=[2],Kind=[Added]} |
| 1580 |
@ChgRef{Version=[3],Kind=[RevisedAdded],ARef=[AI05-0299-1]} |
| 1581 |
@ChgAdded{Version=[2],Text=[The @lquotes@;Using this version of the Ada |
| 1582 |
Reference Manual@rquotes @Chg{Version=[3],New=[subclause],Old=[clause]} is not included in the International Standard.]} |
| 1583 |
|
| 1584 |
@ChgRef{Version=[3],Kind=[Added]} |
| 1585 |
@ChgAdded{Version=[3],Text=[Paragraph numbers are not included |
| 1586 |
in the International Standard.]} |
| 1587 |
@end{Itemize} |
| 1588 |
@end{Intro} |
| 1589 |
@end{NotISO} |
| 1590 |
|
| 1591 |
@begin{NotISO} |
| 1592 |
@begin{Intro} |
| 1593 |
@AddedSubHeading{Version=[1],Using this version of the Ada Reference Manual} |
| 1594 |
|
| 1595 |
@ChgNote{The following text should be redone once we decide what form Ada 202x |
| 1596 |
will take.} |
| 1597 |
|
| 1598 |
@begin{RMOnly} |
| 1599 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1600 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1601 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1602 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 1603 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 1604 |
@Chg{New=[This document has been revised with @Chg{Version=[4],New=[ |
| 1605 |
the corrections specified in Technical Corrigendum 1 |
| 1606 |
(ISO/IEC 8652:2012/COR.1:2016)@Chg{Version=[5],New=[ and other changes |
| 1607 |
specifically for Ada 202x],Old=[]}], |
| 1608 |
Old=[the corrections specified in Technical Corrigendum 1 |
| 1609 |
(ISO/IEC 8652:1995/COR.1:2001)@Chg{Version=[2],New=[ and |
| 1610 |
Amendment 1 (ISO/IEC 8652/AMD 1:2007)@Chg{Version=[3],New=[, along with |
| 1611 |
changes specifically for this third edition],Old=[]}],Old=[]}]}. |
| 1612 |
In addition, a variety of editorial errors have been corrected.],Old=[]} |
| 1613 |
@end{RMOnly} |
| 1614 |
@begin{AARMOnly} |
| 1615 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1616 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1617 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1618 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 1619 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 1620 |
@Chg{New=[This document has been revised with @Chg{Version=[4],New=[ |
| 1621 |
the corrections specified in Technical Corrigendum 1 |
| 1622 |
(ISO/IEC 8652:2012/COR.1:2016)@Chg{Version=[5],New=[ and other changes |
| 1623 |
specifically for Ada 202x],Old=[]}], |
| 1624 |
Old=[the corrections specified in Technical Corrigendum 1 |
| 1625 |
(ISO/IEC 8652:1995/COR.1:2001)@Chg{Version=[2],New=[ and |
| 1626 |
Amendment 1 (ISO/IEC 8652/AMD 1:2007)@Chg{Version=[3],New=[, along with |
| 1627 |
changes specifically for this third edition],Old=[]}],Old=[]}]}. |
| 1628 |
In addition, @Chg{Version=[3],New=[more],Old=[additional]} annotations |
| 1629 |
have been added and a variety of editorial errors have been corrected.],Old=[]} |
| 1630 |
@end{AARMOnly} |
| 1631 |
|
| 1632 |
@begin{RMOnly} |
| 1633 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1634 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1635 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1636 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 1637 |
@ChgRef{Version=[5],Kind=[RevisedAdded]} |
| 1638 |
@Chg{New=[Changes to the original 8652:1995 can be identified by the version |
| 1639 |
number @Chg{Version=[2],New=[],Old=[/1 ]}following the paragraph |
| 1640 |
number.@Chg{Version=[2],New=[ Paragraphs with a version number of /1 were |
| 1641 |
changed by Technical Corrigendum 1 @Chg{Version=[4],New=[for Ada 95 ],Old=[]}or |
| 1642 |
were editorial corrections at that time, |
| 1643 |
while paragraphs with a version number of /2 were changed by Amendment 1 or were |
| 1644 |
more recent editorial corrections@Chg{Version=[3],New=[, and paragraphs with a |
| 1645 |
version number of /3 were changed by the third (2012) edition of the Standard |
| 1646 |
or were still |
| 1647 |
more recent editorial corrections],Old=[]}.],Old=[]}@Chg{Version=[4],New=[ Paragraphs |
| 1648 |
with a version number of /4 are changed by Technical Corrigendum 1 for Ada 2012 |
| 1649 |
or were editorial corrections at that time.],Old=[]}@Chg{Version=[5],New=[ Paragraphs |
| 1650 |
with a version number of /5 are changes or |
| 1651 |
editorial corrections for Ada 202x.],Old=[]} |
| 1652 |
Paragraphs not so marked are |
| 1653 |
unchanged by @Chg{Version=[2],New=[@Chg{Version=[5],New=[Ada 202x, ],Old=[]}@Chg{Version=[4], |
| 1654 |
New=[Technical Corrigendum 1 for Ada 2012, ],Old=[]}@Chg{Version=[3], |
| 1655 |
New=[the third edition, ],Old=[]}Amendment 1, ],Old=[]}Technical Corrigendum |
| 1656 |
1@Chg{Version=[2],New=[@Chg{Version=[4],New=[ for Ada 95],Old=[]},],Old=[]} or editorial corrections. Paragraph numbers |
| 1657 |
of unchanged paragraphs are the same as in |
| 1658 |
the @Chg{Version=[3],New=[1995 edition of the],Old=[original]} Ada Reference |
| 1659 |
Manual. In addition, some versions of this document include revision bars near the |
| 1660 |
paragraph numbers. Where paragraphs are inserted, the paragraph numbers are of |
| 1661 |
the form pp.nn, where pp is the number of the preceding paragraph, and nn is an |
| 1662 |
insertion number. For instance, the first paragraph inserted after paragraph 8 |
| 1663 |
is numbered 8.1, the second paragraph inserted is numbered 8.2, and so on. |
| 1664 |
Deleted paragraphs are indicated by the text @i{@shrink{This paragraph was |
| 1665 |
deleted.}} Deleted paragraphs include empty paragraphs that were numbered in |
| 1666 |
the @Chg{Version=[3],New=[1995 edition of the],Old=[original]} |
| 1667 |
Ada Reference Manual.],Old=[]} |
| 1668 |
@end{RMOnly} |
| 1669 |
@begin{AARMOnly} |
| 1670 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1671 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1672 |
@ChgRef{Version=[3],Kind=[RevisedAdded]} |
| 1673 |
@ChgRef{Version=[4],Kind=[RevisedAdded]} |
| 1674 |
@Chg{New=[Changes to the original 8652:1995 can be identified by the version |
| 1675 |
number @Chg{Version=[2],New=[],Old=[/1 ]}following the paragraph |
| 1676 |
number.@Chg{Version=[2],New=[ Paragraphs with a version number of /1 were |
| 1677 |
changed by Technical Corrigendum 1 @Chg{Version=[4],New=[for Ada 95 ],Old=[]}or were editorial corrections at that time, |
| 1678 |
while paragraphs with a version number of /2 were changed by Amendment 1 or were |
| 1679 |
more recent editorial corrections@Chg{Version=[3],New=[, and paragraphs with a |
| 1680 |
version number of /3 were changed by the third (2012) edition of the Standard |
| 1681 |
or were still |
| 1682 |
more recent editorial corrections],Old=[]}.],Old=[]}@Chg{Version=[4],New=[ Paragraphs |
| 1683 |
with a version number of /4 are changed by Technical Corrigendum 1 for Ada 2012 |
| 1684 |
or were editorial corrections at that time.],Old=[]}@Chg{Version=[5],New=[ Paragraphs |
| 1685 |
with a version number of /5 are changes or |
| 1686 |
editorial corrections for Ada 202x.],Old=[]} |
| 1687 |
Paragraphs not so marked are |
| 1688 |
unchanged by @Chg{Version=[2],New=[@Chg{Version=[5],New=[Ada 202x, ],Old=[]}@Chg{Version=[4], |
| 1689 |
New=[Technical Corrigendum 1 for Ada 2012, ],Old=[]}@Chg{Version=[3], |
| 1690 |
New=[the third edition, ],Old=[]}Amendment 1, ],Old=[]}Technical Corrigendum |
| 1691 |
1@Chg{Version=[2],New=[,],Old=[]} or editorial corrections. Paragraph numbers |
| 1692 |
of unchanged paragraphs are the same as in the @Chg{Version=[3],New=[1995 |
| 1693 |
edition of the],Old=[original]} Ada Reference Manual. Inserted text is indicated |
| 1694 |
by underlining, and deleted text is |
| 1695 |
indicated by strikethroughs. @Chg{Version=[2],New=[Some versions also use |
| 1696 |
color to indicate the version of the change. ],Old=[]}Where paragraphs are |
| 1697 |
inserted, the paragraph numbers are of the form pp.nn, where pp is the number |
| 1698 |
of the preceding paragraph, and nn is an insertion number. For instance, the |
| 1699 |
first paragraph inserted after paragraph 8 is numbered 8.1, the second |
| 1700 |
paragraph inserted is numbered 8.2, and so on. Deleted paragraphs are indicated |
| 1701 |
by the text @i{@shrink{This paragraph was deleted.}} Deleted paragraphs include |
| 1702 |
empty paragraphs that were numbered in the @Chg{Version=[3],New=[1995 edition of |
| 1703 |
the],Old=[original]} Ada Reference Manual. Similar markings and numbering |
| 1704 |
@Chg{Version=[3],New=[are],Old=[is]} used for changes to annotations.],Old=[]} |
| 1705 |
@begin{Honest} |
| 1706 |
@ChgRef{Version=[3],Kind=[AddedNormal]} |
| 1707 |
@ChgAdded{Version=[3],Text=[The paragraph number is considered part of the |
| 1708 |
paragraph; when a paragraph is moved to a different paragraph number, it is |
| 1709 |
marked as changed even if the contents have not changed.]} |
| 1710 |
@end{Honest} |
| 1711 |
@end{AARMOnly} |
| 1712 |
@end{Intro} |
| 1713 |
@end{NotISO} |
| 1714 |
|