| 1 |
@Part(frontmatter, root="ada.mss") |
| 2 |
@comment{$Source: e:\\cvsroot/ARM/Source/front_matter.mss,v $} |
| 3 |
@comment{$Revision: 1.57 $ $Date: 2006/11/09 06:29:49 $} |
| 4 |
|
| 5 |
@ChgNote{Following is a foreword for the consolidated edition of the RM/AARM.} |
| 6 |
@UnNumberedSection(Foreword to this version of the Ada Reference Manual) |
| 7 |
@ChgNote{The above has to be manually commented out if creating "original" RMs. |
| 8 |
We shouldn't need to do that again.} |
| 9 |
@ChgNote{We needed boilerplate like this to avoid objections from various |
| 10 |
outside parties. It seems unlikely that the same objections won't be raised |
| 11 |
again.} |
| 12 |
@begin{Intro} |
| 13 |
@begin{NotISO} |
| 14 |
@ChgRef{Version=[1],Kind=[Added]} |
| 15 |
@ChgAdded{Version=[1],Text=[The International Standard for the |
| 16 |
programming language Ada is ISO/IEC 8652:1995(E).]} |
| 17 |
|
| 18 |
@ChgRef{Version=[1],Kind=[Added]} |
| 19 |
@ChgAdded{Version=[1],Text=[The Ada Working Group ISO/IEC JTC 1/SC 22/WG 9 is tasked by ISO with |
| 20 |
the work item to interpret and maintain the International Standard and to |
| 21 |
produce Technical Corrigenda, as appropriate. The technical work on the |
| 22 |
International Standard is performed by the Ada Rapporteur Group (ARG) of WG 9. |
| 23 |
In September 2000, WG 9 approved and forwarded Technical Corrigendum 1 to |
| 24 |
SC 22 for ISO approval, which was granted in February 2001. Technical |
| 25 |
Corrigendum 1 was published in June 2001.]} |
| 26 |
|
| 27 |
@ChgRef{Version=[2],Kind=[Added]} |
| 28 |
@ChgAdded{Version=[2],Text=[In October 2002, WG 9 approved a schedule and |
| 29 |
guidelines for the preparation of an Amendment to the International Standard. |
| 30 |
WG 9 approved the scope of the Amendment in June 2004. In April 2006, WG 9 |
| 31 |
approved and forwarded the Amendment to SC 22 for approval, which was granted |
| 32 |
in August 2006. Final ISO/IEC approval is expected by early 2007.]} |
| 33 |
|
| 34 |
@ChgRef{Version=[1],Kind=[Added]} |
| 35 |
@ChgAdded{Version=[1],Text=[The Technical Corrigendum lists the individual |
| 36 |
changes that need to be made to the text of the International Standard to |
| 37 |
correct errors, omissions or inconsistencies. The corrections specified in |
| 38 |
Technical Corrigendum 1 are |
| 39 |
part of the International Standard ISO/IEC 8652:1995(E).]} |
| 40 |
|
| 41 |
@ChgRef{Version=[2],Kind=[Added]} |
| 42 |
@ChgAdded{Version=[2],Text=[Similarly, Amendment 1 lists the individual changes that |
| 43 |
need to be made to the text of the International Standard to add new features |
| 44 |
as well as correct errors.]} |
| 45 |
|
| 46 |
@ChgRef{Version=[1],Kind=[Added]} |
| 47 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 48 |
@Chg{New=[When ISO published Technical Corrigendum 1, it did not also publish |
| 49 |
a document that merges the @Chg{Version=[2],New=[changes from the ],Old=[]}Technical |
| 50 |
Corrigendum @Chg{Version=[2],New=[],Old=[changes ]}into |
| 51 |
the text of the International Standard.@Chg{Version=[2],New=[ It is not |
| 52 |
known whether ISO will publish a document that merges the changes from |
| 53 |
Technical Corrigendum and Amendment 1 into the text of the International |
| 54 |
Standard.],Old=[]} |
| 55 |
However, ISO rules require that the |
| 56 |
project editor for the @Chg{Version=[2],New=[International Standard], |
| 57 |
Old=[Technical Corrigendum]} be able to produce such a document |
| 58 |
on demand.],Old=[]} |
| 59 |
|
| 60 |
@ChgRef{Version=[1],Kind=[Added]} |
| 61 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 62 |
@Chg{New=[This version of the Ada Reference Manual is what the project editor would |
| 63 |
provide to ISO in response to such a request. It incorporates the changes |
| 64 |
specified in the Technical Corrigendum @Chg{Version=[2],New=[and Amendment ],Old=[]}into |
| 65 |
the text of ISO/IEC 8652:1995(E). |
| 66 |
It should be understood that the publication of any ISO document involves |
| 67 |
changes in general format, boilerplate, headers, etc., as well as a review by professional |
| 68 |
editors that may introduce editorial changes to the text. This version of the |
| 69 |
Ada Reference Manual is therefore neither an official ISO document, nor a |
| 70 |
version guaranteed to be identical to an official ISO document, should ISO |
| 71 |
decide to reprint the International Standard incorporating an approved Technical |
| 72 |
Corrigendum@Chg{Version=[2],New=[ and Amendment],Old=[]}. It is nevertheless a |
| 73 |
best effort to be as close as possible to the |
| 74 |
technical content of such an updated document. In the case of a conflict between this |
| 75 |
document and @Chg{Version=[2],New=[Amendment],Old=[Technical Corrigendum]} |
| 76 |
1 as approved by ISO (or between this document |
| 77 |
and @Chg{Version=[2],New=[Technical Corrigendum 1 in the case of paragraphs |
| 78 |
not changed by Amendment 1; or between this document and ],Old=[]}the |
| 79 |
original 8652:1995 in the case of paragraphs not changed by @Chg{Version=[2], |
| 80 |
New=[either Amendment 1 or ],Old=[]}Technical |
| 81 |
Corrigendum 1), the other documents contain the official text of the |
| 82 |
International Standard ISO/IEC 8652:1995(E)@Chg{Version=[2],New=[ and |
| 83 |
its Amendment],Old=[]}.],Old=[]} |
| 84 |
|
| 85 |
@ChgRef{Version=[1],Kind=[Added]} |
| 86 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 87 |
@Chg{New=[As it is very inconvenient to have the Reference Manual for Ada |
| 88 |
specified in @Chg{Version=[2],New=[three],Old=[two]} documents, this |
| 89 |
consolidated version of the Ada Reference |
| 90 |
Manual is made available to the public.],Old=[]} |
| 91 |
|
| 92 |
@end{NotISO} |
| 93 |
@end{Intro} |
| 94 |
|
| 95 |
@UnNumberedSection(Foreword) |
| 96 |
@begin{Intro} |
| 97 |
|
| 98 |
ISO (the International Organization for Standardization) |
| 99 |
and IEC (the International Electrotechnical Commission) |
| 100 |
form the specialized system for worldwide standardization. |
| 101 |
National bodies that are members of ISO or IEC |
| 102 |
participate in the development of International Standards through |
| 103 |
technical committees established by the respective organization to deal |
| 104 |
with particular fields of technical activity. |
| 105 |
ISO and IEC technical committees collaborate in fields of mutual |
| 106 |
interest. |
| 107 |
Other international organizations, governmental and non-governmental, |
| 108 |
in liaison with ISO and IEC, also take part in the work. |
| 109 |
|
| 110 |
In the field of information technology, |
| 111 |
ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. |
| 112 |
Draft International Standards adopted by the joint technical committee |
| 113 |
are circulated to national bodies for voting. |
| 114 |
Publication as an International Standard requires approval by |
| 115 |
at least 75 % of the national bodies casting a vote. |
| 116 |
|
| 117 |
International Standard ISO/IEC 8652 was prepared by |
| 118 |
Joint Technical Committee ISO/IEC JTC 1, |
| 119 |
@i{Information Technology}. |
| 120 |
|
| 121 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 122 |
This @Chg{Version=[2],New=[consolidated],Old=[second]} edition @Chg{Version=[2], |
| 123 |
New=[updates],Old=[cancels and replaces]} the @Chg{Version=[2],New=[second],Old=[first]} |
| 124 |
edition (ISO 8652:@Chg{Version=[2],New=[1995)],Old=[1987), of which it constitutes |
| 125 |
a technical revision]}. |
| 126 |
@begin{Discussion} |
| 127 |
@ChgRef{Version=[2],Kind=[AddedNormal]} |
| 128 |
@ChgAdded{Version=[2],Text=[The above is unofficial wording added just to avoid |
| 129 |
confusion. If ISO decides |
| 130 |
to publish a new standard, the above would be replaced by @ldquote@;This third |
| 131 |
edition cancels and replaces the second edition (ISO 8652:1995), of which it |
| 132 |
constitutes a technical revision@rdquote. The first three paragraphs in this |
| 133 |
section also would be replaced by the current ISO boilerplate.]} |
| 134 |
@end{Discussion} |
| 135 |
|
| 136 |
|
| 137 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00440-01]} |
| 138 |
Annexes A to J form an integral part of this |
| 139 |
International Standard. |
| 140 |
Annexes K to @Chg{Version=[2],New=[Q],Old=[P]} are for information only. |
| 141 |
|
| 142 |
|
| 143 |
@begin{Discussion} |
| 144 |
This document is the Annotated Ada Reference Manual (AARM). |
| 145 |
It contains the entire text of the Ada 95 standard |
| 146 |
(ISO/IEC 8652:1995), plus various annotations. |
| 147 |
It is intended primarily for compiler writers, |
| 148 |
validation test writers, and other language lawyers. |
| 149 |
The annotations include detailed rationale for individual rules |
| 150 |
and explanations of some of the more arcane interactions among the |
| 151 |
rules. |
| 152 |
@end{Discussion} |
| 153 |
@end{Intro} |
| 154 |
@begin{Comment} (*Was Syntax9XOnly - We don't generate this document anymore*) |
| 155 |
This document lists the syntax rules of Ada 95. |
| 156 |
@end{Comment} |
| 157 |
@begin{Comment} (*Was Chg839XOnly - We don't generate this document anymore*) |
| 158 |
|
| 159 |
This document lists in detail the changes introduced in the second |
| 160 |
(Ada 95) edition of the Ada standard (ISO/IEC 8652:1995) |
| 161 |
with respect to the first (Ada 83) edition (ISO 8652:1987). |
| 162 |
|
| 163 |
@end{Comment} |
| 164 |
|
| 165 |
@UnNumberedSection{Introduction} |
| 166 |
|
| 167 |
@begin{Intro} |
| 168 |
@begin{AARMOnly} |
| 169 |
This is the Annotated Ada Reference Manual. |
| 170 |
@end{AARMOnly} |
| 171 |
@begin{RMOnly} |
| 172 |
This is the Ada Reference Manual. |
| 173 |
@end{RMOnly} |
| 174 |
|
| 175 |
@Leading@;Other available Ada documents include: |
| 176 |
@comment{We have to put the itemize inside of the AARMOnly, because otherwise |
| 177 |
the formatter thinks this is a nested bullet, making a mess. Since this is |
| 178 |
the only place this is used, it is easier to fix the text than the program. |
| 179 |
RLB - 2000-05-17} |
| 180 |
@begin{AARMOnly} |
| 181 |
@begin{Itemize} |
| 182 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 183 |
@Chg{Version=[2],New=[Ada 95 Rationale. This],Old=[Rationale for the Ada |
| 184 |
Programming Language @em 1995 edition, which]} gives an introduction to the |
| 185 |
new features of Ada@Chg{Version=[2],New=[ incorporated in the 1995 edition |
| 186 |
of this Standard],Old=[]}, and explains the rationale behind them. |
| 187 |
Programmers @Chg{Version=[2],New=[unfamiliar with Ada 95 ], |
| 188 |
Old=[]}should read this first. |
| 189 |
|
| 190 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 191 |
@ChgAdded{Version=[2],Text=[Ada 2005 Rationale. This gives an introduction to the |
| 192 |
changes and new features in Ada 2005 (compared with the 1995 edition), and |
| 193 |
explains the rationale behind them. Programmers should read this rationale |
| 194 |
before reading this Standard in depth.]} |
| 195 |
|
| 196 |
@ChgRef{Version=[1],Kind=[Deleted]} |
| 197 |
@ChgDeleted{Version=[1],Text=[Changes to Ada @em 1987 to 1995. This document |
| 198 |
lists in detail the changes made to the 1987 edition of the standard.]} |
| 199 |
|
| 200 |
The Ada Reference Manual (RM). |
| 201 |
This is the International Standard @em ISO/IEC 8652:1995. |
| 202 |
|
| 203 |
@ChgRef{Version=[2],Kind=[Added]} |
| 204 |
@ChgAdded{Version=[2],Text=[Technical Corrigendum 1 @em ISO/IEC 8652:1995:COR.1:2001. |
| 205 |
This document lists corrections to the International Standard.]} |
| 206 |
|
| 207 |
@ChgRef{Version=[2],Kind=[Added]} |
| 208 |
@ChgAdded{Version=[2],Text=[Amendment 1 @em ISO/IEC 8652:1995:AMD.1:2007. This |
| 209 |
document outlines additional features and corrections to the International |
| 210 |
Standard.]} |
| 211 |
|
| 212 |
@ChgRef{Version=[2],Kind=[Added]} |
| 213 |
@ChgAdded{Version=[2],Text=[The consolidated Ada Reference Manual. An @i{unofficial} |
| 214 |
document combining the above three documents into a single document.]} |
| 215 |
@end{Itemize} |
| 216 |
@end{AARMOnly} |
| 217 |
|
| 218 |
@begin{RMOnly} |
| 219 |
@begin{Itemize} |
| 220 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 221 |
@Chg{Version=[2],New=[Ada 95 Rationale. This],Old=[Rationale for the Ada |
| 222 |
Programming Language @em 1995 edition, which]} gives an introduction to the |
| 223 |
new features of Ada@Chg{Version=[2],New=[ incorporated in the 1995 edition of this Standard],Old=[]}, |
| 224 |
and explains the rationale behind them. Programmers @Chg{Version=[2],New=[unfamiliar |
| 225 |
with Ada 95 ],Old=[]}should read this first. |
| 226 |
|
| 227 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 228 |
@ChgAdded{Version=[2],Text=[Ada 2005 Rationale. This gives an introduction |
| 229 |
to the changes and new features in Ada 2005 (compared with the 1995 edition), |
| 230 |
and explains the rationale behind them. Programmers should read this rationale |
| 231 |
before reading this Standard in depth.]} |
| 232 |
|
| 233 |
@ChgRef{Version=[1],Kind=[Deleted]} |
| 234 |
@ChgDeleted{Version=[1], Text=[Changes to Ada @em 1987 to 1995. This document lists in |
| 235 |
detail the changes made to the 1987 edition of the standard.]} |
| 236 |
|
| 237 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 238 |
The Annotated Ada Reference Manual (AARM).@Defn{Annotated Ada Reference Manual} |
| 239 |
@Defn{AARM}The AARM contains all of the text |
| 240 |
in @Chg{Version=[2],New=[the consolidated Ada Reference Manual],Old=[the RM95]}, |
| 241 |
@ChgNote{John had "this International Standard", but it's really related to the |
| 242 |
unofficial document. Change it back if ISO decides to publish this consolidated RM.} |
| 243 |
plus various annotations. It is intended primarily for compiler writers, |
| 244 |
validation test writers, |
| 245 |
and others who wish to study the fine details. |
| 246 |
The annotations include detailed rationale for individual rules |
| 247 |
and explanations of some of the more arcane interactions among the |
| 248 |
rules. |
| 249 |
@end{Itemize} |
| 250 |
@end{RMOnly} |
| 251 |
@end{Intro} |
| 252 |
|
| 253 |
@SubHeading(Design Goals) |
| 254 |
|
| 255 |
@begin{Intro} |
| 256 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 257 |
Ada was originally designed with three overriding concerns: |
| 258 |
program reliability and maintenance, programming as a human |
| 259 |
activity, and efficiency. @Chg{Version=[2],New=[The 1995],Old=[This]} revision |
| 260 |
to the language was designed to provide greater flexibility and extensibility, |
| 261 |
additional control over storage management and |
| 262 |
synchronization, and standardized packages oriented toward |
| 263 |
supporting important application areas, while at the same |
| 264 |
time retaining the original emphasis on reliability, |
| 265 |
maintainability, and efficiency.@Chg{Version=[2],New=[ This amended version |
| 266 |
provides further flexibility and adds more standardized packages within the |
| 267 |
framework provided by the 1995 revision.],Old=[]} |
| 268 |
|
| 269 |
The need for languages that promote reliability and simplify |
| 270 |
maintenance is well established. Hence emphasis was placed |
| 271 |
on program readability over ease of writing. For example, |
| 272 |
the rules of the language require that program variables be |
| 273 |
explicitly declared and that their type be specified. Since |
| 274 |
the type of a variable is invariant, compilers can ensure |
| 275 |
that operations on variables are compatible with the |
| 276 |
properties intended for objects of the type. Furthermore, |
| 277 |
error-prone notations have been avoided, and the syntax of |
| 278 |
the language avoids the use of encoded forms in favor of |
| 279 |
more English-like constructs. Finally, the language offers |
| 280 |
support for separate compilation of program units in a way |
| 281 |
that facilitates program development and maintenance, and |
| 282 |
which provides the same degree of checking between units as |
| 283 |
within a unit. |
| 284 |
|
| 285 |
Concern for the human programmer was also stressed during |
| 286 |
the design. Above all, an attempt was made to keep to a |
| 287 |
relatively small number of underlying concepts integrated in |
| 288 |
a consistent and systematic way while continuing to avoid |
| 289 |
the pitfalls of excessive involution. The design especially |
| 290 |
aims to provide language constructs that correspond |
| 291 |
intuitively to the normal expectations of users. |
| 292 |
|
| 293 |
Like many other human activities, the development of |
| 294 |
programs is becoming ever more decentralized and |
| 295 |
distributed. Consequently, the ability to assemble a |
| 296 |
program from independently produced software components |
| 297 |
continues to be a central idea in the design. The concepts |
| 298 |
of packages, of private types, and of generic units are |
| 299 |
directly related to this idea, which has ramifications in |
| 300 |
many other aspects of the language. An allied concern is |
| 301 |
the maintenance of programs to match changing requirements; |
| 302 |
type extension and the hierarchical library enable a program |
| 303 |
to be modified while minimizing disturbance to existing |
| 304 |
tested and trusted components. |
| 305 |
|
| 306 |
No language can avoid the problem of efficiency. Languages |
| 307 |
that require over-elaborate compilers, or that lead to the |
| 308 |
inefficient use of storage or execution time, force these |
| 309 |
inefficiencies on all machines and on all programs. Every |
| 310 |
construct of the language was examined in the light of |
| 311 |
present implementation techniques. Any proposed construct |
| 312 |
whose implementation was unclear or that required excessive |
| 313 |
machine resources was rejected. |
| 314 |
@end{Intro} |
| 315 |
|
| 316 |
@SubHeading{Language Summary} |
| 317 |
|
| 318 |
@begin{Intro} |
| 319 |
An Ada program is composed of one or more program units. |
| 320 |
Program units may be subprograms (which define executable |
| 321 |
algorithms), packages (which define collections of |
| 322 |
entities), task units (which define concurrent |
| 323 |
computations), protected units (which define operations for |
| 324 |
the coordinated sharing of data between tasks), or generic |
| 325 |
units (which define parameterized forms of packages and |
| 326 |
subprograms). Each program unit normally consists of two parts: a |
| 327 |
specification, containing the information that must be |
| 328 |
visible to other units, and a body, containing the |
| 329 |
implementation details, which need not be visible to other |
| 330 |
units. Most program units can be compiled separately. |
| 331 |
|
| 332 |
This distinction of the specification and body, and the |
| 333 |
ability to compile units separately, allows a program to be |
| 334 |
designed, written, and tested as a set of largely |
| 335 |
independent software components. |
| 336 |
|
| 337 |
An Ada program will normally make use of a library of |
| 338 |
program units of general utility. The language provides |
| 339 |
means whereby individual organizations can construct their |
| 340 |
own libraries. All libraries are structured in a |
| 341 |
hierarchical manner; this enables the logical decomposition |
| 342 |
of a subsystem into individual components. The text of a |
| 343 |
separately compiled program unit must name the library units |
| 344 |
it requires. |
| 345 |
|
| 346 |
|
| 347 |
@keepnext@i(Program Units) |
| 348 |
|
| 349 |
A subprogram is the basic unit for expressing an algorithm. |
| 350 |
There are two kinds of subprograms: procedures and |
| 351 |
functions. A procedure is the means of invoking a series of |
| 352 |
actions. For example, it may read data, update variables, |
| 353 |
or produce some output. It may have parameters, to provide |
| 354 |
a controlled means of passing information between the |
| 355 |
procedure and the point of call. |
| 356 |
A function is the means of invoking the computation of a |
| 357 |
value. It is similar to a procedure, but in addition will |
| 358 |
return a result. |
| 359 |
|
| 360 |
A package is the basic unit for defining a collection of |
| 361 |
logically related entities. For example, a package can be |
| 362 |
used to define a set of type declarations and |
| 363 |
associated operations. Portions of a package can be hidden |
| 364 |
from the user, thus allowing access only to the logical |
| 365 |
properties expressed by the package specification. |
| 366 |
|
| 367 |
Subprogram and package units may be compiled separately and |
| 368 |
arranged in hierarchies of parent and child units giving |
| 369 |
fine control over visibility of the logical properties and |
| 370 |
their detailed implementation. |
| 371 |
|
| 372 |
A task unit is the basic unit for defining a task whose |
| 373 |
sequence of actions may be executed concurrently with those |
| 374 |
of other tasks. Such tasks may be implemented on |
| 375 |
multicomputers, multiprocessors, or with interleaved |
| 376 |
execution on a single processor. A task unit may define |
| 377 |
either a single executing task or a task type permitting the |
| 378 |
creation of any number of similar tasks. |
| 379 |
|
| 380 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00114-01]} |
| 381 |
A protected unit is the basic unit for defining protected |
| 382 |
operations for the coordinated use of data shared between |
| 383 |
tasks. Simple mutual exclusion is provided automatically, |
| 384 |
and more elaborate sharing protocols can be defined. A |
| 385 |
protected operation can either be a subprogram or an entry. |
| 386 |
A protected entry specifies a Boolean expression (an entry |
| 387 |
barrier) that must be @Chg{Version=[2],New=[True],Old=[true]} |
| 388 |
before the body of the entry is |
| 389 |
executed. A protected unit may define a single protected |
| 390 |
object or a protected type permitting the creation of |
| 391 |
several similar objects. |
| 392 |
|
| 393 |
@keepnext@i(Declarations and Statements) |
| 394 |
|
| 395 |
The body of a program unit generally contains two parts: a |
| 396 |
declarative part, which defines the logical entities to be |
| 397 |
used in the program unit, and a sequence of statements, |
| 398 |
which defines the execution of the program unit. |
| 399 |
|
| 400 |
The declarative part associates names with declared |
| 401 |
entities. For example, a name may denote a type, a |
| 402 |
constant, a variable, or an exception. A declarative part |
| 403 |
also introduces the names and parameters of other nested |
| 404 |
subprograms, packages, task units, protected units, and |
| 405 |
generic units to be used in the program unit. |
| 406 |
|
| 407 |
The sequence of statements describes a sequence of actions |
| 408 |
that are to be performed. The statements are executed in |
| 409 |
succession (unless a transfer of control causes execution to continue |
| 410 |
from another place). |
| 411 |
|
| 412 |
An assignment statement changes the value of a variable. A |
| 413 |
procedure call invokes execution of a procedure after |
| 414 |
associating any actual parameters provided at the call with |
| 415 |
the corresponding formal parameters. |
| 416 |
|
| 417 |
Case statements and if statements allow the selection of an |
| 418 |
enclosed sequence of statements based on the value of an |
| 419 |
expression or on the value of a condition. |
| 420 |
|
| 421 |
The loop statement provides the basic iterative mechanism in |
| 422 |
the language. A loop statement specifies that a sequence of |
| 423 |
statements is to be executed repeatedly as directed by an |
| 424 |
iteration scheme, or until an exit statement is encountered. |
| 425 |
|
| 426 |
A block statement comprises a sequence of statements |
| 427 |
preceded by the declaration of local entities used by the |
| 428 |
statements. |
| 429 |
|
| 430 |
Certain statements are associated with concurrent execution. |
| 431 |
A delay statement delays the execution of a task for a |
| 432 |
specified duration or until a specified time. An entry call |
| 433 |
statement is written as a procedure call statement; it |
| 434 |
requests an operation on a task or on a protected |
| 435 |
object, blocking the caller until the operation can be |
| 436 |
performed. A called task may accept an entry call by |
| 437 |
executing a corresponding accept statement, which specifies |
| 438 |
the actions then to be performed as part of the rendezvous |
| 439 |
with the calling task. An entry call on a protected object |
| 440 |
is processed when the corresponding entry barrier evaluates |
| 441 |
to true, whereupon the body of the entry is executed. The |
| 442 |
requeue statement permits the provision of a service as a |
| 443 |
number of related activities with preference control. One |
| 444 |
form of the select statement allows a selective wait for one |
| 445 |
of several alternative rendezvous. Other forms of the |
| 446 |
select statement allow conditional or timed entry calls and |
| 447 |
the asynchronous transfer of control in response to some |
| 448 |
triggering event. |
| 449 |
|
| 450 |
Execution of a program unit may encounter error situations |
| 451 |
in which normal program execution cannot continue. For |
| 452 |
example, an arithmetic computation may exceed the maximum |
| 453 |
allowed value of a number, or an attempt may be made to |
| 454 |
access an array component by using an incorrect index value. |
| 455 |
To deal with such error situations, the statements of a |
| 456 |
program unit can be textually followed by exception handlers |
| 457 |
that specify the actions to be taken when the error |
| 458 |
situation arises. Exceptions can be raised explicitly by a |
| 459 |
raise statement. |
| 460 |
|
| 461 |
@keepnext@i(Data Types) |
| 462 |
|
| 463 |
Every object in the language has a type, which characterizes |
| 464 |
a set of values and a set of applicable operations. The |
| 465 |
main classes of types are elementary types (comprising |
| 466 |
enumeration, numeric, and access types) and composite types |
| 467 |
(including array and record types). |
| 468 |
|
| 469 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01],ARef=[AI95-00387-01]} |
| 470 |
An enumeration type defines an ordered set of distinct |
| 471 |
enumeration literals, for example a list of states or an |
| 472 |
alphabet of characters. The enumeration types Boolean, |
| 473 |
Character, @Chg{Version=[2],New=[], |
| 474 |
Old=[and ]}Wide_Character@Chg{Version=[2],New=[, and Wide_Wide_Character], |
| 475 |
Old=[]} are predefined. |
| 476 |
|
| 477 |
Numeric types provide a means of performing exact or |
| 478 |
approximate numerical computations. Exact computations use |
| 479 |
integer types, which denote sets of consecutive integers. |
| 480 |
Approximate computations use either fixed point types, with |
| 481 |
absolute bounds on the error, or floating point types, with |
| 482 |
relative bounds on the error. The numeric types Integer, |
| 483 |
Float, and Duration are predefined. |
| 484 |
|
| 485 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01],ARef=[AI95-00387-01]} |
| 486 |
Composite types allow definitions of structured objects with |
| 487 |
related components. The composite types in the language |
| 488 |
include arrays and records. An array is an object with |
| 489 |
indexed components of the same type. A record is an object |
| 490 |
with named components of possibly different types. Task and |
| 491 |
protected types are also forms of composite types. The |
| 492 |
array types String@Chg{Version=[2],New=[,],Old=[ and]} |
| 493 |
Wide_String@Chg{Version=[2], |
| 494 |
New=[, and Wide_Wide_String],Old=[]} are predefined. |
| 495 |
|
| 496 |
Record, task, and protected types may have special components |
| 497 |
called discriminants which parameterize the type. |
| 498 |
Variant record structures that depend on the values of |
| 499 |
discriminants can be defined within a record type. |
| 500 |
|
| 501 |
Access types allow the construction of linked data |
| 502 |
structures. A value of an access type represents a |
| 503 |
reference to an object declared as aliased or to an object |
| 504 |
created by the evaluation of an allocator. Several |
| 505 |
variables of an access type may designate the same object, |
| 506 |
and components of one object may designate the same or other |
| 507 |
objects. Both the elements in such linked data structures |
| 508 |
and their relation to other elements can be altered during |
| 509 |
program execution. Access types also permit references to |
| 510 |
subprograms to be stored, passed as parameters, and |
| 511 |
ultimately dereferenced as part of an indirect call. |
| 512 |
|
| 513 |
Private types permit restricted views of a type. A private |
| 514 |
type can be defined in a package so that only the logically |
| 515 |
necessary properties are made visible to the users of the |
| 516 |
type. The full structural details that are externally |
| 517 |
irrelevant are then only available within the package and |
| 518 |
any child units. |
| 519 |
|
| 520 |
From any type a new type may be defined by derivation. A type, |
| 521 |
together with its derivatives (both direct and indirect) |
| 522 |
form a derivation class. Class-wide operations may be |
| 523 |
defined that accept as a parameter an operand of any type in |
| 524 |
a derivation class. For record and private types, the derivatives may |
| 525 |
be extensions of the parent type. Types that support these |
| 526 |
object-oriented capabilities of class-wide operations and type extension |
| 527 |
must be tagged, so that |
| 528 |
the specific type of an operand within a derivation class can |
| 529 |
be identified at run time. When an operation of a tagged |
| 530 |
type is applied to an operand whose specific type is not |
| 531 |
known until run time, implicit dispatching is performed |
| 532 |
based on the tag of the operand. |
| 533 |
|
| 534 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 535 |
@ChgAdded{Version=[2],Text=[ |
| 536 |
Interface types provide abstract models from which other interfaces and |
| 537 |
types may be composed and derived. This provides a reliable form of multiple |
| 538 |
inheritance. Interface types may also be implemented by |
| 539 |
task types and protected types thereby enabling concurrent programming and |
| 540 |
inheritance to be merged.]} |
| 541 |
|
| 542 |
The concept of a type is further refined by the concept of a |
| 543 |
subtype, whereby a user can constrain the set of allowed |
| 544 |
values of a type. Subtypes can be used to define subranges |
| 545 |
of scalar types, arrays with a limited set of index values, |
| 546 |
and records and private types with particular discriminant |
| 547 |
values. |
| 548 |
|
| 549 |
@keepnext@i(Other Facilities) |
| 550 |
|
| 551 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 552 |
@Chg{Version=[2],New=[Aspect],Old=[Representation]} clauses can be |
| 553 |
used to specify the mapping |
| 554 |
between types and features of an underlying machine. For |
| 555 |
example, the user can specify that objects of a given type |
| 556 |
must be represented with a given number of bits, or that the |
| 557 |
components of a record are to be represented using a given |
| 558 |
storage layout. Other features allow the controlled use of |
| 559 |
low level, nonportable, or implementation-dependent aspects, |
| 560 |
including the direct insertion of machine code. |
| 561 |
|
| 562 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 563 |
The predefined environment of the language provides |
| 564 |
for input-output and other capabilities @Chg{Version=[2],New=[],Old=[(such |
| 565 |
as string manipulation and random number generation) ]}by means of |
| 566 |
standard library packages. |
| 567 |
Input-output is supported for |
| 568 |
values of user-defined as well as of predefined types. |
| 569 |
Standard means of representing values in display form are |
| 570 |
also provided.@Chg{Version=[2],New=[],Old=[ Other standard library packages are defined |
| 571 |
in annexes of the standard to support systems with |
| 572 |
specialized requirements.]} |
| 573 |
|
| 574 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 575 |
@Chg{Version=[2],New=[The predefined standard library packages provide |
| 576 |
facilities such as string manipulation, containers of various kinds (vectors, |
| 577 |
lists, maps, etc.), mathematical functions, random number generation, and access |
| 578 |
to the execution environment.],Old=[]} |
| 579 |
|
| 580 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 581 |
@Chg{Version=[2],New=[The specialized annexes define further predefined library |
| 582 |
packages and facilities with emphasis on areas such as real-time |
| 583 |
scheduling, interrupt handling, distributed systems, numerical computation, and |
| 584 |
high-integrity systems.],Old=[]} |
| 585 |
|
| 586 |
Finally, the language provides a powerful means of |
| 587 |
parameterization of program units, called generic program |
| 588 |
units. The generic parameters can be types and subprograms |
| 589 |
(as well as objects and packages) and so allow general |
| 590 |
algorithms and data structures to be defined that are |
| 591 |
applicable to all types of a given class. |
| 592 |
@end{Intro} |
| 593 |
|
| 594 |
@SubHeading{Language Changes} |
| 595 |
|
| 596 |
@begin{Intro} |
| 597 |
|
| 598 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 599 |
@Leading@;This @Chg{Version=[2],New=[amended ],Old=[]}International Standard |
| 600 |
@Chg{Version=[2],New=[updates the edition of 1995 which replaced], |
| 601 |
Old=[International Standard replaces]} the first edition of 1987. |
| 602 |
In @Chg{Version=[2],New=[the 1995],Old=[this]} edition, the following major |
| 603 |
language changes @Chg{Version=[2],New=[were],Old=[have been]} incorporated: |
| 604 |
@begin{Itemize} |
| 605 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 606 |
Support for standard 8-bit and 16-bit |
| 607 |
character@Chg{Version=[2],New=[s was added],Old=[ sets]}. |
| 608 |
See @Chg{Version=[2],New=[clauses @RefSecNum{Character Set}],Old=[Section 2]}, |
| 609 |
@RefSecNum{Character Types}, |
| 610 |
@RefSecNum{String Types}, |
| 611 |
@RefSecNum{The Package Standard}, |
| 612 |
@RefSecNum{Character Handling}, and |
| 613 |
@RefSecNum{String Handling}. |
| 614 |
|
| 615 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 616 |
@Chg{Version=[2],New=[The type model was extended to include facilities |
| 617 |
for o],Old=[O]}bject-oriented programming |
| 618 |
with @Chg{Version=[2],New=[dynamic],Old=[run-time]} polymorphism. |
| 619 |
See the discussions of classes, derived types, tagged types, |
| 620 |
record extensions, and private extensions |
| 621 |
in clauses @RefSecNum{Derived Types and Classes}, |
| 622 |
@RefSecNum{Tagged Types and Type Extensions}, and |
| 623 |
@RefSecNum{Private Types and Private Extensions}. |
| 624 |
@Chg{Version=[2],New=[Additional],Old=[See also the new]} forms of generic |
| 625 |
formal parameters @Chg{Version=[2],New=[were],Old=[that are]} allowed |
| 626 |
@Chg{Version=[2],New=[as described in clauses |
| 627 |
@RefSecNum{Formal Private and Derived Types} and @RefSecNum{Formal Packages}], |
| 628 |
Old=[by @RefSec{Formal Private and Derived Types} and @RefSec{Formal Packages}]}. |
| 629 |
|
| 630 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 631 |
Access types @Chg{Version=[2],New=[were],Old=[have been]} extended to allow |
| 632 |
an access value to designate a subprogram or an object declared by an |
| 633 |
object declaration @Chg{Version=[2],New=[],Old=[(]}as opposed to just |
| 634 |
@Chg{Version=[2],New=[an object ],Old=[a heap-]}allocated |
| 635 |
@Chg{Version=[2],New=[on a heap],Old=[object)]}. |
| 636 |
See @Chg{Version=[2],New=[clause ],Old=[]}@RefSecNum{Access Types}. |
| 637 |
|
| 638 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 639 |
Efficient data-oriented synchronization @Chg{Version=[2],New=[was], |
| 640 |
Old=[is]} provided @Chg{Version=[2],New=[by the introduction of], |
| 641 |
Old=[via]} protected types. See @Chg{Version=[2], |
| 642 |
New=[clause @RefSecNum{Protected Units and Protected Objects}],Old=[Section 9]}. |
| 643 |
|
| 644 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 645 |
The library @Chg{Version=[2],New=[structure was extended to allow |
| 646 |
library units to],Old=[units of a library may]} be organized into a |
| 647 |
hierarchy of parent and child units. |
| 648 |
See @Chg{Version=[2], New=[clause @RefSecNum{Separate Compilation}], |
| 649 |
Old=[Section 10]}. |
| 650 |
|
| 651 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 652 |
Additional support @Chg{Version=[2],New=[was],Old=[has been]} added for |
| 653 |
interfacing to other languages. See @RefSecNum{Interface to Other Languages}. |
| 654 |
|
| 655 |
@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00387-01]} |
| 656 |
@leading@;The Specialized Needs Annexes |
| 657 |
@Chg{Version=[2],New=[were],Old=[have been]} added |
| 658 |
to provide specific support for certain application areas: |
| 659 |
@begin{InnerItemize} |
| 660 |
@RefSec{Systems Programming} |
| 661 |
|
| 662 |
@RefSec{Real-Time Systems} |
| 663 |
|
| 664 |
@RefSec{Distributed Systems} |
| 665 |
|
| 666 |
@RefSec{Information Systems} |
| 667 |
|
| 668 |
@RefSec{Numerics} |
| 669 |
|
| 670 |
@RefSec{High Integrity Systems} |
| 671 |
@end{InnerItemize} |
| 672 |
@end{Itemize} |
| 673 |
|
| 674 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 675 |
@ChgAdded{Version=[2],Text=[Amendment 1 modifies the 1995 International Standard by |
| 676 |
making changes and additions that improve the capability of the language and |
| 677 |
the reliability of programs written in the language. In particular the changes |
| 678 |
were designed to improve the portability of programs, interfacing to other |
| 679 |
languages, and both the object-oriented and real-time capabilities.]} |
| 680 |
|
| 681 |
@ChgRef{Version=[2],Kind=[Added],ARef=[AI95-00387-01]} |
| 682 |
@ChgAdded{Version=[2],Type=[Leading],Text=[The following significant changes |
| 683 |
with respect to the 1995 edition are incorporated:]} |
| 684 |
|
| 685 |
@begin{Itemize} |
| 686 |
@ChgRef{Version=[2],Kind=[Added]} |
| 687 |
@Chg{Version=[2],New=[Support for program text is extended to cover the |
| 688 |
entire ISO/IEC 10646:2003 repertoire. Execution support now includes the |
| 689 |
32-bit character set. See clauses @RefSecNum{Character Set}, |
| 690 |
@RefSecNum{Character Types}, |
| 691 |
@RefSecNum{String Types}, |
| 692 |
@RefSecNum{The Package Standard}, |
| 693 |
@RefSecNum{Character Handling}, and |
| 694 |
@RefSecNum{String Handling}.],Old=[]} |
| 695 |
|
| 696 |
@ChgRef{Version=[2],Kind=[Added]} |
| 697 |
@Chg{Version=[2],New=[ |
| 698 |
The object-oriented model has been improved by the addition of an |
| 699 |
interface facility which provides multiple inheritance and additional |
| 700 |
flexibility for type extensions. See clauses @RefSecNum{Derived Types and Classes}, |
| 701 |
@RefSecNum{Tagged Types and Type Extensions}, and |
| 702 |
@RefSecNum{Private Types and Private Extensions}. An |
| 703 |
alternative notation for calling operations more akin to that used in |
| 704 |
other languages has also been added. See clause @RefSecNum{Selected Components}.],Old=[]} |
| 705 |
|
| 706 |
@ChgRef{Version=[2],Kind=[Added]} |
| 707 |
@Chg{Version=[2],New=[ |
| 708 |
Access types have been further extended to unify properties such as |
| 709 |
the ability to access constants and to exclude null values. See clause |
| 710 |
@RefSecNum{Access Types}. Anonymous access types are now permitted more |
| 711 |
freely and anonymous access-to-subprogram types are introduced. See clauses |
| 712 |
@RefSecNum{Objects and Named Numbers}, @RefSecNum{Array Types}, |
| 713 |
@RefSecNum{Access Types}, and @RefSecNum{Object Renaming Declarations}.],Old=[]} |
| 714 |
|
| 715 |
@ChgRef{Version=[2],Kind=[Added]} |
| 716 |
@Chg{Version=[2],New=[ |
| 717 |
The control of structure and visibility has been enhanced to |
| 718 |
permit mutually dependent references between units and finer control |
| 719 |
over access from the private part of a package. See clauses |
| 720 |
@RefSecNum{Incomplete Type Declarations} and @RefSecNum{Context Clauses - With Clauses}. |
| 721 |
In addition, limited types have been made more useful by the |
| 722 |
provision of aggregates, constants, and constructor functions. See clauses |
| 723 |
@RefSecNum{Aggregates}, @RefSecNum{Return Statements}, |
| 724 |
and @RefSecNum{Limited Types}.],Old=[]} |
| 725 |
|
| 726 |
@ChgRef{Version=[2],Kind=[Added]} |
| 727 |
@Chg{Version=[2],New=[ |
| 728 |
The predefined environment has been extended to include additional time |
| 729 |
and calendar operations, |
| 730 |
improved string handling, a comprehensive container library, file and |
| 731 |
directory management, and access to environment variables. See clauses |
| 732 |
@RefSecNum{Formatting, Time Zones, and other operations for Time}, |
| 733 |
@RefSecNum{String Handling}, |
| 734 |
@RefSecNum{The Package Directories}, |
| 735 |
@RefSecNum{The Package Environment_Variables}, |
| 736 |
and @RefSecNum{Containers}.],Old=[]} |
| 737 |
|
| 738 |
@ChgRef{Version=[2],Kind=[Added]} |
| 739 |
@Chg{Version=[2],New=[ |
| 740 |
Two of the Specialized Needs Annexes have been considerably enhanced:],Old=[]} |
| 741 |
@begin{InnerItemize} |
| 742 |
@ChgRef{Version=[2],Kind=[Added]} |
| 743 |
@Chg{Version=[2],New=[ |
| 744 |
The Real-Time Systems Annex now includes the Ravenscar profile for |
| 745 |
high-integrity systems, further dispatching policies such as Round Robin |
| 746 |
and Earliest Deadline First, support for timing events, and support for |
| 747 |
control of CPU time utilization. See clauses @RefSecNum{Priority Scheduling}, |
| 748 |
@RefSecNum{Run-time Profiles}, |
| 749 |
@RefSecNum{Execution Time}, and |
| 750 |
@RefSecNum{Timing Events}.],Old=[]} |
| 751 |
|
| 752 |
@ChgRef{Version=[2],Kind=[Added]} |
| 753 |
@Chg{Version=[2],New=[ |
| 754 |
The Numerics Annex now includes support for real and complex vectors |
| 755 |
and matrices as previously defined in ISO/IEC 13813:1997 plus further basic |
| 756 |
operations for linear algebra. |
| 757 |
See clause @RefSecNum{Vector and Matrix Manipulation}.],Old=[]} |
| 758 |
@end{InnerItemize} |
| 759 |
|
| 760 |
@ChgRef{Version=[2],Kind=[Added]} |
| 761 |
@Chg{Version=[2],New=[ |
| 762 |
The overall reliability of the language has been enhanced by |
| 763 |
a number of improvements. These include new syntax which detects |
| 764 |
accidental overloading, as well as pragmas for making assertions and |
| 765 |
giving better control over the suppression of checks. See clauses |
| 766 |
@RefSecNum{Subprogram Declarations}, |
| 767 |
@RefSecNum{Pragmas Assert and Assertion_Policy}, and |
| 768 |
@RefSecNum{Suppressing Checks}.],Old=[]} |
| 769 |
|
| 770 |
@end{Itemize} |
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
@end{Intro} |
| 776 |
|
| 777 |
@NewPage |
| 778 |
@SubHeading(Instructions for Comment Submission) |
| 779 |
|
| 780 |
@begin{Intro} |
| 781 |
|
| 782 |
|
| 783 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 784 |
@Defn{instructions for comment submission} |
| 785 |
@Defn{comments, instructions for submission} |
| 786 |
Informal comments on this International Standard may be sent via |
| 787 |
e-mail to @Chg{New=[@b(ada-comment@@ada-auth.org)], |
| 788 |
Old=[@b(ada-comment@@sw-eng.falls-church.va.us)]}. |
| 789 |
If appropriate, the Project Editor will initiate |
| 790 |
the defect correction procedure. |
| 791 |
|
| 792 |
|
| 793 |
Comments should use the following format: |
| 794 |
@begin(display) |
| 795 |
@ChgRef{Version=[2],Kind=[Revised]} |
| 796 |
@TabSet(L6)@\@b(!topic) @i[Title summarizing comment] |
| 797 |
@\@b(!reference) @Chg{Version=[2],New=[Ada 2005 RM],Old=[RM95-]}@i{ss.ss(pp)} |
| 798 |
@\@b(!from) @i{Author Name yy-mm-dd} |
| 799 |
@\@b(!keywords) @i{keywords related to topic} |
| 800 |
@\@b(!discussion) |
| 801 |
@comment{Blank line} |
| 802 |
@\@i{text of discussion} |
| 803 |
@end(display) |
| 804 |
|
| 805 |
where @i(ss.ss) is the section, clause or subclause number, |
| 806 |
@i(pp) is the paragraph number where applicable, |
| 807 |
and @i(yy-mm-dd) is the date the comment was sent. |
| 808 |
The date is optional, as is the @b(!keywords) line. |
| 809 |
|
| 810 |
@ChgRef{Version=[1],Kind=[Revised]} |
| 811 |
@Chg{New=[], Old=[Multiple comments per e-mail message are acceptable.]} |
| 812 |
Please use a descriptive @lquotes@;Subject@rquotes@; in your e-mail |
| 813 |
message@Chg{New=[, and limit each message to a single comment.], Old=[.]} |
| 814 |
|
| 815 |
When correcting typographical errors or making minor wording |
| 816 |
suggestions, please put the correction directly as the topic of the |
| 817 |
comment; use square brackets [ ] to indicate text to be omitted and |
| 818 |
curly braces { } to indicate text to be added, and provide enough |
| 819 |
context to make the nature of the suggestion self-evident or put |
| 820 |
additional information in the body of the comment, for example: |
| 821 |
@begin{Display} |
| 822 |
@TabSet(L6)@\@b(!topic) [c]{C}haracter |
| 823 |
@\@b(!topic) it[']s meaning is not defined |
| 824 |
@end{Display} |
| 825 |
|
| 826 |
|
| 827 |
Formal requests for interpretations and for reporting defects in this |
| 828 |
International Standard may be made in accordance with the ISO/IEC |
| 829 |
JTC 1 Directives and the ISO/IEC JTC 1/SC 22 policy for interpretations. |
| 830 |
National Bodies may submit a Defect Report to ISO/IEC JTC 1/SC 22 for resolution |
| 831 |
under the JTC 1 procedures. |
| 832 |
A response will be provided and, if appropriate, |
| 833 |
a Technical Corrigendum will be issued in accordance with the procedures. |
| 834 |
|
| 835 |
|
| 836 |
@end{Intro} |
| 837 |
|
| 838 |
@begin{NotISO} |
| 839 |
@NewPage |
| 840 |
@SubHeading(Acknowledgements@Chg{Version=[2],New=[ for the Ada 95 edition of the Ada Reference Manual],Old=[]}) |
| 841 |
|
| 842 |
@begin{Intro} |
| 843 |
|
| 844 |
This International Standard was prepared by the Ada 9X Mapping/Revision |
| 845 |
Team based at Intermetrics, Inc., which has included: |
| 846 |
W. Carlson, Program Manager; |
| 847 |
T. Taft, Technical Director; |
| 848 |
J. Barnes (consultant); |
| 849 |
B. Brosgol (consultant); |
| 850 |
R. Duff (Oak Tree Software); |
| 851 |
M. Edwards; |
| 852 |
C. Garrity; |
| 853 |
R. Hilliard; |
| 854 |
O. Pazy (consultant); |
| 855 |
D. Rosenfeld; |
| 856 |
L. Shafer; |
| 857 |
W. White; |
| 858 |
M. Woodger. |
| 859 |
|
| 860 |
The following consultants to the Ada 9X Project |
| 861 |
contributed to the Specialized Needs Annexes: |
| 862 |
T. Baker (Real-Time/Systems Programming @em SEI, FSU); |
| 863 |
K. Dritz (Numerics @em Argonne National Laboratory); |
| 864 |
A. Gargaro (Distributed Systems @em Computer Sciences); |
| 865 |
J. Goodenough (Real-Time/Systems Programming @em SEI); |
| 866 |
J. McHugh (Secure Systems @em consultant); |
| 867 |
B. Wichmann (Safety-Critical Systems @em NPL: UK). |
| 868 |
|
| 869 |
This work was regularly reviewed by |
| 870 |
the Ada 9X Distinguished Reviewers |
| 871 |
and the members of the Ada 9X Rapporteur Group (XRG): |
| 872 |
E. Ploedereder, Chairman of DRs and XRG (University of Stuttgart: Germany); |
| 873 |
B. Bardin (Hughes); |
| 874 |
J. Barnes (consultant: UK); @Comment{XRG - UK} |
| 875 |
B. Brett (DEC); |
| 876 |
B. Brosgol (consultant); |
| 877 |
R. Brukardt (RR Software); |
| 878 |
N. Cohen (IBM); |
| 879 |
R. Dewar (NYU); |
| 880 |
G. Dismukes (TeleSoft); |
| 881 |
A. Evans (consultant); |
| 882 |
A. Gargaro (Computer Sciences); |
| 883 |
M. Gerhardt (ESL); |
| 884 |
J. Goodenough (SEI); @Comment{Also XRG - U.S.} |
| 885 |
S. Heilbrunner (University of Salzburg: Austria); @Comment{Also XRG - Belgium} |
| 886 |
P. Hilfinger (UC/Berkeley); @Comment{No longer a DR.} |
| 887 |
B. K@latin1(228)llberg (CelsiusTech: Sweden); @Comment{XRG - Sweden} |
| 888 |
M. Kamrad II (Unisys); |
| 889 |
J. van Katwijk (Delft University of Technology: The Netherlands); @Comment{XRG - The Netherlands} |
| 890 |
V. Kaufman (Russia); @Comment{XRG - Russia} |
| 891 |
P. Kruchten (Rational); @Comment{Also XRG - France} |
| 892 |
R. Landwehr (CCI: Germany); @Comment{Also XRG - Germany} |
| 893 |
C. Lester (Portsmouth Polytechnic: UK); |
| 894 |
L. M@latin1(229)nsson (TELIA Research: Sweden); @Comment{No longer a DR.} |
| 895 |
S. Michell (Multiprocessor Toolsmiths: Canada); @Comment{Also XRG - Canada} |
| 896 |
M. Mills (US Air Force); |
| 897 |
D. Pogge (US Navy); |
| 898 |
K. Power (Boeing); |
| 899 |
O. Roubine (Verdix: France); |
| 900 |
A. Strohmeier (Swiss Fed Inst of Technology: Switzerland); @Comment{XRG - Switzerland} |
| 901 |
W. Taylor (consultant: UK); |
| 902 |
J. Tokar (Tartan); |
| 903 |
E. Vasilescu (Grumman); |
| 904 |
J. Vladik (Prospeks s.r.o.: |
| 905 |
Czech Republic); @Comment{XRG - Czech Republic} |
| 906 |
S. Van Vlierberghe (OFFIS: Belgium). @Comment{XRG - Belgium} |
| 907 |
|
| 908 |
|
| 909 |
Other valuable feedback influencing the revision |
| 910 |
process was provided by |
| 911 |
the Ada 9X Language Precision |
| 912 |
Team (Odyssey Research Associates), the Ada 9X User/Implementer |
| 913 |
Teams (AETECH, Tartan, TeleSoft), the Ada 9X Implementation |
| 914 |
Analysis Team (New York University) and the Ada community-at-large. |
| 915 |
|
| 916 |
|
| 917 |
Special thanks go to R. Mathis, |
| 918 |
Convenor of ISO/IEC JTC 1/SC 22 Working Group 9. |
| 919 |
@Comment{Also XRG - U.S.} |
| 920 |
|
| 921 |
|
| 922 |
The Ada 9X Project was sponsored by the Ada Joint Program Office. |
| 923 |
Christine M. Anderson at the Air Force Phillips Laboratory (Kirtland |
| 924 |
AFB, NM) was the project manager. |
| 925 |
|
| 926 |
@AddedSubHeading{Version=[1],Acknowledgements for the Corrigendum version of the Ada Reference Manual} |
| 927 |
|
| 928 |
@ChgRef{Version=[1],Kind=[Added]} |
| 929 |
@Chg{New=<The editor [R. Brukardt (USA)] would like to thank the many people |
| 930 |
whose hard work and assistance has made this revision possible.>,Old=[]} |
| 931 |
|
| 932 |
@ChgRef{Version=[1],Kind=[Added]} |
| 933 |
@Chg{New=[Thanks go out to all of the members of the ISO/IEC JTC 1/SC 22/WG 9 |
| 934 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 935 |
corrections was critical to the entire process. Especially valuable |
| 936 |
contributions came from the chairman of the ARG, E. Ploedereder (Germany), who |
| 937 |
kept the process moving; J. Barnes (UK) and K. Ishihata (Japan), whose |
| 938 |
extremely detailed reviews kept the editor on his toes; G. Dismukes (USA), |
| 939 |
M. Kamrad (USA), P. Leroy (France), S. Michell (Canada), T. Taft (USA), |
| 940 |
J. Tokar (USA), and other members too numerous to mention.],Old=[]} |
| 941 |
|
| 942 |
@ChgRef{Version=[1],Kind=[Added]} |
| 943 |
@Chg{New=[Special thanks go to R. Duff (USA) for his explanations of the |
| 944 |
previous system of formatting of these documents during the tedious conversion |
| 945 |
to more modern formats. Special thanks also go to the convener of |
| 946 |
ISO/IEC JTC 1/SC 22/WG 9, J. Moore (USA), without whose help and support |
| 947 |
the corrigendum and this consolidated reference manual would not have been possible.],Old=[]} |
| 948 |
|
| 949 |
@AddedSubHeading{Version=[2],Acknowledgements for the Amendment version of the Ada Reference Manual} |
| 950 |
|
| 951 |
@ChgRef{Version=[2],Kind=[Added]} |
| 952 |
@Chg{Version=[2],New=<The editor [R. Brukardt (USA)] would like to thank the many |
| 953 |
people whose hard work and assistance has made this revision possible.>,Old=[]} |
| 954 |
|
| 955 |
@ChgRef{Version=[2],Kind=[Added]} |
| 956 |
@ChgAdded{Version=[2],Text=[Thanks go out to all of the members of the |
| 957 |
ISO/IEC JTC 1/SC 22/WG 9 |
| 958 |
Ada Rapporteur Group, whose work on creating and editing the wording |
| 959 |
corrections was critical to the entire process. Especially valuable |
| 960 |
contributions came from the chairman of the ARG, P. Leroy (France), who kept |
| 961 |
the process on schedule; J. Barnes (UK) whose careful reviews found many |
| 962 |
typographical errors; T. Taft (USA), who always seemed to have a suggestion |
| 963 |
when we were stuck, and who also was usually able to provide the valuable |
| 964 |
service of explaining why things were as they are; S. Baird (USA), who found |
| 965 |
many obscure problems with the proposals; and A. Burns (UK), who pushed many of |
| 966 |
the real-time proposals to completion. Other ARG members who contributed were: |
| 967 |
R. Dewar (USA), G. Dismukes (USA), R. Duff (USA), K. Ishihata (Japan), S. |
| 968 |
Michell (Canada), E. Ploedereder (Germany), J.P. Rosen (France), E. Schonberg |
| 969 |
(USA), J. Tokar (USA), and T. Vardanega (Italy).]} |
| 970 |
|
| 971 |
@ChgRef{Version=[2],Kind=[Added]} |
| 972 |
@Chg{Version=[2],New=[Special thanks go to Ada-Europe and the Ada Resource |
| 973 |
Association, without whose help and support the Amendment and this consolidated |
| 974 |
reference manual would not have been possible. M. Heaney (USA) requires special |
| 975 |
thanks for his tireless work on the containers packages. Finally, special |
| 976 |
thanks go to the convener of ISO/IEC JTC 1/SC 22/WG 9, J. Moore (USA), who |
| 977 |
guided the document through the standardization process.],Old=[]} |
| 978 |
|
| 979 |
@end{Intro} |
| 980 |
|
| 981 |
@NewPage |
| 982 |
@SubHeading{Changes} |
| 983 |
|
| 984 |
@begin{Intro} |
| 985 |
|
| 986 |
@Leading@;The International Standard is the same as this version |
| 987 |
of the Reference Manual, except: |
| 988 |
@begin{Itemize} |
| 989 |
This list of Changes is not included in the International Standard. |
| 990 |
|
| 991 |
The @lquotes@;Acknowledgements@rquotes@; page |
| 992 |
is not included in the International Standard. |
| 993 |
|
| 994 |
The text in the running headers and footers on each page is slightly |
| 995 |
different in the International Standard. |
| 996 |
|
| 997 |
The title page(s) are different in the International Standard. |
| 998 |
|
| 999 |
This document is formatted for 8.5-by-11-inch paper, whereas |
| 1000 |
the International Standard is formatted for A4 paper |
| 1001 |
(210-by-297mm); |
| 1002 |
thus, the page breaks are in different places. |
| 1003 |
|
| 1004 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1005 |
@Chg{New=[The @lquotes@;Foreword to this version of the Ada Reference Manual@rquotes |
| 1006 |
clause is not included in the International Standard.],Old=[]} |
| 1007 |
|
| 1008 |
@ChgRef{Version=[2],Kind=[Added]} |
| 1009 |
@Chg{Version=[2],New=[The @lquotes@;Using this version of the Ada Reference Manual@rquotes |
| 1010 |
clause is not included in the International Standard.],Old=[]} |
| 1011 |
@end{Itemize} |
| 1012 |
@end{Intro} |
| 1013 |
@end{NotISO} |
| 1014 |
|
| 1015 |
@begin{NotISO} |
| 1016 |
@begin{Intro} |
| 1017 |
@AddedSubHeading{Version=[1],Using this version of the Ada Reference Manual} |
| 1018 |
|
| 1019 |
@begin{RMOnly} |
| 1020 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1021 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1022 |
@Chg{New=[This document has been revised with the corrections specified in Technical Corrigendum 1 |
| 1023 |
(ISO/IEC 8652:1995/COR.1:2001)@Chg{Version=[2],New=[ and Amendment 1 (ISO/IEC 8652/AMD.1:2007)],Old=[]}. |
| 1024 |
In addition, a variety of editorial errors have been corrected.],Old=[]} |
| 1025 |
@end{RMOnly} |
| 1026 |
@begin{AARMOnly} |
| 1027 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1028 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1029 |
@Chg{New=[This document has been revised with the corrections specified in Technical Corrigendum 1 |
| 1030 |
(ISO/IEC 8652:1995/COR.1:2001)@Chg{Version=[2],New=[ and Amendment 1 (ISO/IEC 8652/AMD.1:2007)],Old=[]}. |
| 1031 |
In addition, additional annotations have been added and |
| 1032 |
a variety of editorial errors have been corrected.],Old=[]} |
| 1033 |
@end{AARMOnly} |
| 1034 |
|
| 1035 |
@begin{RMOnly} |
| 1036 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1037 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1038 |
@Chg{New=[Changes to the original 8652:1995 can be identified by the version |
| 1039 |
number @Chg{Version=[2],New=[],Old=[/1 ]}following the paragraph |
| 1040 |
number.@Chg{Version=[2],New=[ Paragraphs with a version number of /1 were |
| 1041 |
changed by Technical Corrigendum 1 or were editorial corrections at that time, |
| 1042 |
while paragraphs with a version number of /2 were changed by Amendment 1 or were |
| 1043 |
more recent editorial corrections.],Old=[]} Paragraphs not so marked are |
| 1044 |
unchanged by @Chg{Version=[2],New=[Amendment 1, ],Old=[]}Technical Corrigendum |
| 1045 |
1@Chg{Version=[2],New=[,],Old=[]} or editorial corrections. Paragraph numbers |
| 1046 |
of unchanged paragraphs are the same as in the original Ada Reference Manual. |
| 1047 |
In addition, some versions of this document include revision bars near the |
| 1048 |
paragraph numbers. Where paragraphs are inserted, the paragraph numbers are of |
| 1049 |
the form pp.nn, where pp is the number of the preceding paragraph, and nn is an |
| 1050 |
insertion number. For instance, the first paragraph inserted after paragraph 8 |
| 1051 |
is numbered 8.1, the second paragraph inserted is numbered 8.2, and so on. |
| 1052 |
Deleted paragraphs are indicated by the text @i{@shrink{This paragraph was |
| 1053 |
deleted.}} Deleted paragraphs include empty paragraphs that were numbered in |
| 1054 |
the original Ada Reference Manual.],Old=[]} |
| 1055 |
@end{RMOnly} |
| 1056 |
@begin{AARMOnly} |
| 1057 |
@ChgRef{Version=[1],Kind=[Added]} |
| 1058 |
@ChgRef{Version=[2],Kind=[RevisedAdded]} |
| 1059 |
@Chg{New=[Changes to the original 8652:1995 can be identified by the version |
| 1060 |
number @Chg{Version=[2],New=[],Old=[/1 ]}following the paragraph |
| 1061 |
number.@Chg{Version=[2],New=[ Paragraphs with a version number of /1 were |
| 1062 |
changed by Technical Corrigendum 1 or were editorial corrections at that time, |
| 1063 |
while paragraphs with a version number of /2 were changed by Amendment 1 or were |
| 1064 |
more recent editorial corrections.],Old=[]} Paragraphs not so marked are |
| 1065 |
unchanged by @Chg{Version=[2],New=[Amendment 1, ],Old=[]}Technical Corrigendum |
| 1066 |
1@Chg{Version=[2],New=[,],Old=[]} or editorial corrections@Chg{Version=[2],New=[; |
| 1067 |
that is, they are identical to the 1995 version],Old=[]}. Paragraph numbers |
| 1068 |
of unchanged paragraphs are the same as in the original International |
| 1069 |
Standard. Inserted text is indicated by underlining, and deleted text is |
| 1070 |
indicated by strikethroughs. @Chg{Version=[2],New=[Some versions also use |
| 1071 |
color to indicate the version of the change.],Old=[]}Where paragraphs are |
| 1072 |
inserted, the paragraph numbers are of the form pp.nn, where pp is the number |
| 1073 |
of the preceding paragraph, and nn is an insertion number. For instance, the |
| 1074 |
first paragraph inserted after paragraph 8 is numbered 8.1, the second |
| 1075 |
paragraph inserted is numbered 8.2, and so on. Deleted paragraphs are indicated |
| 1076 |
by the text @i{@shrink{This paragraph was deleted.}} Deleted paragraphs include |
| 1077 |
empty paragraphs that were numbered in the original Ada Reference Manual. |
| 1078 |
Similar markings and numbering is used for changes to annotations.],Old=[]} |
| 1079 |
@end{AARMOnly} |
| 1080 |
@end{Intro} |
| 1081 |
@end{NotISO} |
| 1082 |
|