Debian Codegraph @

source_2012/obsolescent.mss

raw
1 @Part(obsolescent, Root="ada.mss")
2
3 @Comment{$Date: 2015/03/03 05:38:25 $}
4 @LabeledNormativeAnnex{Obsolescent Features}
5
6 @Comment{$Source: e:\\cvsroot/ARM/Source/obsolescent.mss,v $}
7 @Comment{$Revision: 1.59 $}
8
9 @begin{Intro}
10 @ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00368-01]}
11 @Redundant[@Defn{obsolescent feature}
12 This Annex contains descriptions of features of the
13 language whose functionality is largely redundant with other features
14 defined by this International Standard.
15 Use of these features is not recommended in newly written programs.
16 @Chg{Version=[2],New=[Use of these features can be prevented by using pragma
17 Restrictions (No_Obsolescent_Features), see
18 @RefSecNum{Language-Defined Restrictions and Profiles}.],
19 Old=[]}]
20 @begin{Ramification}
21 These features are still part of the language,
22 and have to be implemented by conforming implementations.
23 The primary reason for putting these descriptions here
24 is to get redundant features out of the way of most readers.
25 The designers of the next version of Ada@Chg{Version=[2],New=[],
26 Old=[ after Ada 95]} will have to
27 assess whether or not it makes sense to drop these features from the
28 language.
29 @end{Ramification}
30 @end{Intro}
31
32 @begin{DiffWord83}
33 @Leading@;The following features have been removed from the language,
34 rather than declared to be obsolescent:
35 @begin{Itemize}
36 The package Low_Level_IO
37 (see @RefSecNum{Input-Output}).
38
39 The Epsilon, Mantissa, Emax, Small, Large, Safe_Emax, Safe_Small, and
40 Safe_Large attributes of floating point types
41 (see @RefSecNum{Attributes of Floating Point Types}).
42
43 @ChgRef{Version=[2],Kind=[Deleted],ARef=[AI95-00284-02]}
44 @ChgDeleted{Version=[2],Text=[The pragma Interface
45 (see @RefSecNum{Interfacing Aspects}).]}
46
47 The pragmas System_Name, Storage_Unit, and Memory_Size
48 (see @RefSecNum{The Package System}).
49
50 The pragma Shared
51 (see @RefSecNum{Shared Variable Control}).
52 @end{Itemize}
53
54 Implementations can continue to support the above features for upward
55 compatibility.
56 @end{DiffWord83}
57
58 @begin{DiffWord95}
59 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00368-01]}
60 @ChgAdded{Version=[2],Text=[A mention of the No_Obsolescent_Features
61 restriction was added.]}
62 @end{DiffWord95}
63
64 @begin{DiffWord2005}
65 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
66 @ChgAdded{Version=[3],Text=[@nt{Pragma} Controlled has been removed from
67 the language, rather than declared to be obsolescent. No existing
68 implementation gives it any effect. An implementation could continue to
69 support the pragma as an implementation-defined pragma for upward
70 compatibility.]}
71 @end{DiffWord2005}
72
73
74 @LabeledRevisedClause{Version=[3],New=[Renamings of Library Units],
75 Old=[Renamings of Ada 83 Library Units]}
76
77 @begin{StaticSem}
78 The following @nt{library_unit_renaming_declaration}s exist:
79 @begin{Example}
80 @key[with] Ada.Unchecked_Conversion;
81 @key[generic] @key[function] Unchecked_Conversion @key[renames] Ada.Unchecked_Conversion;
82
83 @key[with] Ada.Unchecked_Deallocation;
84 @key[generic] @key[procedure] Unchecked_Deallocation @key[renames] Ada.Unchecked_Deallocation;
85
86 @key[with] Ada.Sequential_IO;
87 @key[generic] @key[package] Sequential_IO @key[renames] Ada.Sequential_IO;
88
89 @key[with] Ada.Direct_IO;
90 @key[generic] @key[package] Direct_IO @key[renames] Ada.Direct_IO;
91
92 @key[with] Ada.Text_IO;
93 @key[package] Text_IO @key[renames] Ada.Text_IO;
94
95 @key[with] Ada.IO_Exceptions;
96 @key[package] IO_Exceptions @key[renames] Ada.IO_Exceptions;
97
98 @key[with] Ada.Calendar;
99 @key[package] Calendar @key[renames] Ada.Calendar;
100
101 @key[with] System.Machine_Code;
102 @key[package] Machine_Code @key[renames] System.Machine_Code; --@RI{ If supported.}
103 @end{Example}
104 @begin{Discussion}
105 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0004-1]}
106 @ChgAdded{Version=[3],Text=[These library units correspond to those declared
107 in Ada 83, which did not have the child unit concept or the parent package
108 Ada.]}
109 @end{Discussion}
110 @end{StaticSem}
111
112 @begin{ImplReq}
113 The implementation shall allow the user to replace these renamings.
114 @end{ImplReq}
115
116
117 @LabeledClause{Allowed Replacements of Characters}
118
119 @begin{Syntax}
120 @begin{SyntaxText}
121 @Leading@;The following replacements are allowed for the vertical line, number sign,
122 and quotation mark characters:
123 @begin{Itemize}
124 A vertical line character (|) can be replaced by an exclamation mark
125 (!) where used as a delimiter.
126
127
128 The number sign characters (#) of a @nt{based_literal} can be replaced
129 by colons (:) provided that the replacement is done for both
130 occurrences.
131 @begin{Honest}
132 @ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00285-01]}
133 The intent is that such a replacement works in the
134 Value@Chg{Version=[2],New=[,],Old=[ and]}
135 Wide_Value@Chg{Version=[2],New=[, and Wide_Wide_Value],Old=[]} attributes,
136 and in the Get procedures of Text_IO@Chg{Version=[2],New=[ (and Wide_Text_IO
137 and Wide_Wide_Text_IO as well)],Old=[]}},
138 so that things like @lquotes@;16:.123:@rquotes@; is acceptable.
139 @end{Honest}
140
141 The quotation marks (") used as string brackets at both ends of
142 a string literal can be replaced by percent signs (%) provided
143 that the enclosed sequence of characters contains no quotation mark, and
144 provided that both string brackets are replaced. Any
145 percent sign within the sequence of characters shall then be
146 doubled and each such doubled percent sign is interpreted as a
147 single percent sign character value.
148 @end{Itemize}
149
150 These replacements do not change the meaning of the program.
151 @begin{Reason}
152 The original purpose of this feature was to support hardware (for
153 example, teletype machines) that has long been obsolete.
154 The feature is no longer necessary for that reason.
155 Another use of the feature has been to replace the vertical line
156 character (|) when using certain hardware that treats that character
157 as a (non-English) letter.
158 The feature is no longer necessary for that reason, either,
159 since Ada 95 has full support for international character sets.
160 Therefore, we believe this feature is no longer necessary.
161
162 Users of equipment that still uses | to represent a letter will
163 continue to do so.
164 Perhaps by next the time Ada is revised,
165 such equipment will no longer be in use.
166
167 @Leading@;Note that it was never legal to use this feature as a convenient
168 method of including double quotes in a string without doubling them
169 @em the string literal:
170 @begin{Example}
171 %"This is quoted."%
172 @end{Example}
173
174 @Leading@ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0248-1]}
175 is not legal in Ada @Chg{Version=[3],New=[(and never was legal)],Old=[83,
176 nor will it be in Ada 95]}. One has to write:
177 @begin{Example}
178 """This is quoted."""
179 @end{Example}
180 @end{Reason}
181 @end{SyntaxText}
182 @end{Syntax}
183
184 @LabeledClause{Reduced Accuracy Subtypes}
185
186 @begin{Intro}
187 A @nt<digits_constraint> may be used to define
188 a floating point subtype with a new
189 value for its requested decimal precision, as reflected
190 by its Digits attribute. Similarly, a @nt<delta_constraint>
191 may be used to define an ordinary fixed point subtype with
192 a new value for its @i(delta), as reflected by its Delta
193 attribute.
194 @begin(Discussion)
195 It might be more direct to make these attributes
196 specifiable via an @nt<attribute_definition_clause>, and eliminate the
197 syntax for these @ntf<_constraint>s.
198 @end(Discussion)
199 @end{Intro}
200
201 @begin{Syntax}
202 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
203 @Syn{lhs=<delta_constraint>,
204 rhs="@key{delta} @SynI{static_}@Chg{Version=[4],New=[@Syn2{simple_expression}],Old=[@Syn2{expression}]} [@Syn2{range_constraint}]"}
205 @end{Syntax}
206
207 @begin{Resolution}
208 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
209 @PDefn2{Term=[expected type], Sec=(delta_constraint expression)}
210 The @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]}
211 of a @nt<delta_constraint> is expected to be of any real type.
212 @end{Resolution}
213
214 @begin{Legality}
215 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
216 The @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]} of a
217 @nt<delta_constraint> shall be static.
218
219 For a @nt<subtype_indication> with a @nt<delta_constraint>, the
220 @nt<subtype_mark> shall denote an ordinary fixed point subtype.
221
222 @Defn{notwithstanding}
223 For a @nt<subtype_indication> with a @nt<digits_constraint>,
224 the @nt<subtype_mark> shall denote either a decimal fixed point subtype
225 or a floating point subtype
226 (notwithstanding the rule given in @RefSecNum(Fixed Point Types)
227 that only allows a decimal fixed point subtype).
228 @begin(Discussion)
229 @ChgRef{Version=[2],Kind=[Deleted],ARef=[AI95-00114-01]}
230 @ChgDeleted{Version=[2],Text=[We may need a better way to deal with
231 obsolescent features with rules that contradict those of the nonobsolescent
232 parts of the standard.]}
233 @end(Discussion)
234 @end{Legality}
235
236 @begin{StaticSem}
237 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
238 A @nt<subtype_indication> with a @nt<subtype_mark> that
239 denotes an ordinary fixed point subtype and a @nt<delta_constraint>
240 defines an ordinary fixed point subtype with a @i(delta)
241 given by the value of the @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]} of the
242 @nt<delta_constraint>.
243 If the @nt<delta_constraint> includes a @nt<range_@!constraint>, then
244 the ordinary fixed point subtype is constrained by the @nt<range_@!constraint>.
245
246 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
247 A @nt<subtype_indication> with a @nt<subtype_mark> that
248 denotes a floating point subtype and a @nt<digits_constraint>
249 defines a floating point subtype with a requested decimal precision
250 (as reflected by its Digits attribute)
251 given by the value of the @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]} of the @nt<digits_constraint>.
252 If the @nt<digits_constraint> includes a @nt<range_@!constraint>, then
253 the floating point subtype is constrained by the @nt<range_@!constraint>.
254 @end{StaticSem}
255
256 @begin{RunTime}
257 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
258 @PDefn2{Term=[compatibility],
259 Sec=(delta_constraint with an ordinary fixed point subtype)}
260 A @nt<delta_constraint> is @i(compatible) with an ordinary
261 fixed point subtype if the value of the
262 @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]} is no less
263 than the @i(delta) of the subtype, and the @nt<range_constraint>, if any,
264 is compatible with the subtype.
265
266 @ChgRef{Version=[4],Kind=[Revised],ARef=[AI12-0152-1]}
267 @PDefn2{Term=[compatibility],
268 Sec=(digits_constraint with a floating point subtype)}
269 A @nt<digits_constraint> is @i(compatible) with a
270 floating point subtype if the value of the
271 @Chg{Version=[4],New=[@nt<simple_expression>],Old=[@nt<expression>]} is no greater
272 than the requested decimal precision of the subtype, and
273 the @nt<range_constraint>, if any,
274 is compatible with the subtype.
275
276 @PDefn2{Term=[elaboration], Sec=(delta_constraint)}
277 The elaboration of a @nt<delta_constraint> consists of the
278 elaboration of the @nt<range_constraint>, if any.
279 @begin{Reason}
280 A numeric subtype is considered @lquotes@;constrained@rquotes@; only if a range constraint
281 applies to it. The only effect of a @nt<digits_constraint> or a
282 @nt<delta_constraint> without a @nt<range_constraint> is to specify
283 the value of the corresponding Digits or Delta attribute in
284 the new subtype. The set of values of the subtype is not @lquotes@;constrained@rquotes@;
285 in any way by such @ntf<_constraint>s.
286 @end{Reason}
287 @end{RunTime}
288
289 @begin{DiffWord83}
290 In Ada 83, a @nt<delta_constraint> is called a fixed_point_constraint,
291 and a @nt<digits_constraint> is called a floating_point_constraint.
292 We have adopted other terms because @nt<digits_constraint>s apply
293 primarily to decimal fixed point types now (they apply to
294 floating point types only as an obsolescent feature).
295 @end{DiffWord83}
296
297
298 @begin{Diffword2012}
299 @ChgRef{Version=[4],Kind=[AddedNormal],ARef=[AI12-0152-1]}
300 @ChgAdded{Version=[4],Text=[@b<Corrigendum:>
301 Changed the syntax so that the value following @key[delta] in a
302 @nt<delta_constraint> is a @nt<simple_expression>. This is compatible
303 as any expressions that would require extra parentheses are already
304 illegal. The change is necessary to eliminate
305 syntax ambguities in @nt<derived_type_definition>s. The similar change
306 for @nt<digits_constraint> is documented in @RefSecNum{Fixed Point Types}.]}
307 @end{Diffword2012}
308
309
310 @RMNewPageVer{Version=[2]}@Comment{For printed version of Ada 2005 RM}
311 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
312 @LabeledClause{The Constrained Attribute}
313
314 @begin{StaticSem}
315 @Leading@;For every private subtype S, the following attribute is defined:
316 @begin{Discussion}
317 This includes generic formal private subtypes.
318 @end{Discussion}
319 @begin{Description}
320 S'@attr{Constrained}@\Yields the value False if S denotes an unconstrained
321 nonformal private subtype with discriminants; also yields the
322 value False if S denotes a generic formal private subtype, and
323 the associated actual subtype is either an unconstrained subtype
324 with discriminants or an unconstrained array subtype; yields
325 the value True otherwise. The value of this attribute is of
326 the predefined subtype Boolean.
327 @begin{Reason}
328 Because Ada 95 has @nt{unknown_discriminant_part}s,
329 the Constrained attribute of private subtypes is obsolete.
330 This is fortunate, since its Ada 83 definition was confusing,
331 as explained below. Because this attribute is obsolete,
332 we do not bother to extend its definition to private extensions.
333
334 The Constrained attribute of an object is @i(not) obsolete.
335
336 Note well: S'Constrained matches the Ada 95 definition of @lquotes@;constrained@rquotes@;
337 only for composite subtypes. For elementary subtypes,
338 S'Constrained is always true, whether or not S is constrained.
339 (The Constrained attribute of an object does not have this problem,
340 as it is only defined for objects of a discriminated type.)
341 So one should think of its designator as being 'Constrained_Or_Elementary.
342 @end{Reason}
343 @end{Description}
344 @end{StaticSem}
345
346 @LabeledClause{ASCII}
347
348 @begin{StaticSem}
349 @Leading@;The following declaration exists in the declaration of package
350 Standard:
351 @begin{example}
352 @key[package] ASCII @key[is]
353
354
355 --@RI{ Control characters:}
356
357
358 @tabclear()@tabset(P47)
359 NUL : @key[constant] Character := @RI{nul}; @\SOH : @key[constant] Character := @RI{soh};
360 STX : @key[constant] Character := @RI{stx}; @\ETX : @key[constant] Character := @RI{etx};
361 EOT : @key[constant] Character := @RI{eot}; @\ENQ : @key[constant] Character := @RI{enq};
362 ACK : @key[constant] Character := @RI{ack}; @\BEL : @key[constant] Character := @RI{bel};
363 BS : @key[constant] Character := @RI{bs}; @\HT : @key[constant] Character := @RI{ht};
364 LF : @key[constant] Character := @RI{lf}; @\VT : @key[constant] Character := @RI{vt};
365 FF : @key[constant] Character := @RI{ff}; @\CR : @key[constant] Character := @RI{cr};
366 SO : @key[constant] Character := @RI{so}; @\SI : @key[constant] Character := @RI{si};
367 DLE : @key[constant] Character := @RI{dle}; @\DC1 : @key[constant] Character := @RI{dc1};
368 DC2 : @key[constant] Character := @RI{dc2}; @\DC3 : @key[constant] Character := @RI{dc3};
369 DC4 : @key[constant] Character := @RI{dc4}; @\NAK : @key[constant] Character := @RI{nak};
370 SYN : @key[constant] Character := @RI{syn}; @\ETB : @key[constant] Character := @RI{etb};
371 CAN : @key[constant] Character := @RI{can}; @\EM : @key[constant] Character := @RI{em};
372 SUB : @key[constant] Character := @RI{sub}; @\ESC : @key[constant] Character := @RI{esc};
373 FS : @key[constant] Character := @RI{fs}; @\GS : @key[constant] Character := @RI{gs};
374 RS : @key[constant] Character := @RI{rs}; @\US : @key[constant] Character := @RI{us};
375 DEL : @key[constant] Character := @RI{del};
376
377
378 --@RI{ Other characters:}
379
380 Exclam : @key[constant] Character:= '!';@\Quotation : @key[constant] Character:= '"';
381 Sharp : @key[constant] Character:= '#';@\Dollar : @key[constant] Character:= '$';
382 Percent : @key[constant] Character:= '%';@\Ampersand : @key[constant] Character:= '&';
383 Colon : @key[constant] Character:= ':';@\Semicolon : @key[constant] Character:= ';';
384 Query : @key[constant] Character:= '?';@\At_Sign : @key[constant] Character:= '@@';
385 L_Bracket: @key[constant] Character:= '[';@\Back_Slash: @key[constant] Character:= '\';
386 R_Bracket: @key[constant] Character:= ']';@\Circumflex: @key[constant] Character:= '^';
387 Underline: @key[constant] Character:= '_';@\Grave : @key[constant] Character:= '`';
388 L_Brace : @key[constant] Character:= '{';@\Bar : @key[constant] Character:= '|';
389 R_Brace : @key[constant] Character:= '}';@\Tilde : @key[constant] Character:= '~';
390
391 --@RI{ Lower case letters:}
392
393
394 LC_A: @key[constant] Character:= 'a';
395 ...
396 LC_Z: @key[constant] Character:= 'z';
397
398
399 @key[end] ASCII;
400 @end{example}
401 @end{StaticSem}
402
403
404 @LabeledClause{Numeric_Error}
405
406 @begin{StaticSem}
407 @Leading@;The following declaration exists in the declaration
408 of package Standard:
409 @begin{Example}
410 Numeric_Error : @key[exception] @key[renames] Constraint_Error;
411 @end{Example}
412 @begin{Discussion}
413 This is true even though it is not shown in
414 @RefSecNum{The Package Standard}.
415 @end{Discussion}
416 @begin{Reason}
417 In Ada 83, it was unclear which situations should raise
418 Numeric_Error, and which should raise Constraint_Error.
419 The permissions of RM83-11.6 could often be used to allow
420 the implementation to raise Constraint_Error in a situation
421 where one would normally expect Numeric_Error.
422 To avoid this confusion, all situations that raise Numeric_Error in
423 Ada 83 are changed to raise Constraint_Error in Ada 95.
424 Numeric_Error is changed to be a renaming of Constraint_Error
425 to avoid most of the upward compatibilities associated with
426 this change.
427
428 In new code, Constraint_Error should be used instead of Numeric_Error.
429 @end{Reason}
430 @end{StaticSem}
431
432 @LabeledClause{At Clauses}
433
434 @begin{Syntax}
435 @Syn{lhs=<at_clause>,rhs="@key{for} @Syn2{direct_name} @key{use} @key{at} @Syn2{expression};"}
436 @end{Syntax}
437
438 @begin{StaticSem}
439 An @nt{at_clause} of the form @lquotes@;for @i{x} use at @i{y};@rquotes@; is
440 equivalent to an @nt{attribute_definition_clause} of the form
441 @lquotes@;for @i{x}'Address use @i{y};@rquotes@;.
442 @begin{Reason}
443 The preferred syntax for specifying the address of an entity is an
444 @nt{attribute_definition_clause} specifying the Address attribute.
445 Therefore, the special-purpose @nt{at_clause} syntax is now obsolete.
446
447 The above equivalence implies, for example, that only one @nt{at_clause}
448 is allowed for a given entity.
449 Similarly, it is illegal to give both
450 an @nt{at_clause}
451 and an @nt{attribute_definition_clause} specifying the Address attribute.
452 @end{Reason}
453 @end{StaticSem}
454
455 @begin{Extend83}
456 @Defn{extensions to Ada 83}
457 We now allow to define the address of an entity using an
458 @nt{attribute_definition_clause}.
459 This is because Ada 83's @nt{at_clause} is so hard to
460 remember: programmers often tend to write @lquotes@;for X'Address use...;@rquotes@;.
461 @end{Extend83}
462
463 @begin{DiffWord83}
464 Ada 83's @ntf{address_clause} is now called an @nt{at_clause} to avoid
465 confusion with the new term @lquotes@;Address clause@rquotes@; (that is, an
466 @nt{attribute_definition_clause} for the Address attribute).
467 @end{DiffWord83}
468
469 @LabeledSubClause{Interrupt Entries}
470
471 @begin{Intro}
472 @redundant[Implementations are permitted to allow the attachment of task entries to
473 interrupts via the address clause. Such an entry is referred to as an
474 @i{interrupt entry}.
475
476 The address of the task entry corresponds to a hardware interrupt in an
477 implementation-defined manner. (See Ada.Interrupts.Reference in
478 @RefSecNum{The Package Interrupts}.)]
479 @end{Intro}
480
481 @begin{StaticSem}
482 @Leading@;The following attribute is defined:
483
484 @Leading@;For any task entry X:
485 @begin{Description}
486 @Defn{interrupt entry}
487 X'@attr{Address} @\For a task entry whose address is specified
488 (an @i{interrupt entry}), the value
489 refers to the corresponding hardware interrupt. For such
490 an entry, as for any other task entry, the meaning of this
491 value is implementation defined. The value of this attribute
492 is of the type of the subtype System.Address.
493
494 @NoPrefix@;@PDefn2{Term=[specifiable], Sec=(of Address for entries)}
495 Address may be specified for single entries
496 via an @nt{attribute_definition_clause}.
497 @begin{Reason}
498 Because of the equivalence of @nt{at_clause}s and
499 @nt{attribute_definition_clause}s, an interrupt entry may be
500 specified via either notation.
501 @end{Reason}
502 @end{Description}
503 @end{StaticSem}
504
505 @begin{RunTime}
506
507 @PDefn2{Term=[initialization], Sec=[of a task object]}
508 As part of the initialization of a task object, the
509 address clause for an interrupt entry is
510 elaborated@Redundant[, which evaluates the
511 @nt<expression> of the address clause].
512 A check is made that the address specified is
513 associated with some interrupt to which a task entry may be attached.
514 @Defn2{Term=[Program_Error],Sec=(raised by failure of run-time check)}
515 If this check fails, Program_Error is raised.
516 Otherwise, the interrupt entry
517 is attached to the interrupt associated with the specified address.
518
519 @PDefn2{Term=[finalization], Sec=[of a task object]}
520 Upon finalization of the task object, the interrupt entry, if any, is
521 detached from the corresponding interrupt and the default treatment is
522 restored.
523
524 While an interrupt entry is attached to an interrupt,
525 the interrupt is reserved (see @RefSecNum{Interrupt Support}).
526
527 An interrupt delivered to a task entry acts as a call to the entry issued by
528 a hardware task whose priority is in the System.Interrupt_Priority range.
529 It is implementation defined whether the call is performed as
530 an ordinary entry call, a timed entry
531 call, or a conditional entry call; which kind of call is performed
532 can depend on the specific interrupt.
533
534 @end{RunTime}
535
536 @begin{Bounded}
537 @PDefn2{Term=(bounded error),Sec=(cause)}
538 It is a bounded error to evaluate
539 E'Caller (see @RefSecNum(The Package Task_Identification))
540 in an @nt{accept_statement} for an interrupt
541 entry. The possible effects are
542 the same as for calling Current_Task from an entry body.
543 @end{Bounded}
544
545 @begin{DocReq}
546
547 The implementation shall document to which interrupts a
548 task entry may be attached.
549 @ChgDocReq{Version=[2],Kind=[AddedNormal],Text=[@ChgAdded{Version=[2],
550 Text=[The interrupts to which a task entry may be attached.]}]}
551
552 The implementation shall document whether the invocation of an interrupt entry
553 has the effect of an ordinary entry call, conditional call, or a timed call,
554 and whether the effect varies in the presence of pending interrupts.
555 @ChgDocReq{Version=[2],Kind=[AddedNormal],Text=[@ChgAdded{Version=[2],
556 Text=[The type of entry call invoked for an interrupt entry.]}]}
557
558 @end{DocReq}
559
560 @begin{ImplPerm}
561 The support for this subclause is optional.
562
563 Interrupts to which the implementation allows a task entry to be
564 attached may be designated as reserved for the entire duration
565 of program execution@Redundant[; that is, not just when they have an
566 interrupt entry attached to them].
567
568 @ChgRef{Version=[1],Kind=[Revised],Ref=[8652/0077],ARef=[AI95-00111-01]}
569 Interrupt entry calls may be implemented by having the hardware execute
570 directly the appropriate @Chg{New=[@nt{accept_statement}],Old=[accept body]}.
571 Alternatively, the implementation is allowed to provide an internal interrupt
572 handler to simulate the effect of a normal task calling the entry.
573
574 The implementation is allowed to impose restrictions on the specifications
575 and bodies of tasks that have interrupt entries.
576
577 It is implementation defined whether direct calls (from the program) to
578 interrupt entries are allowed.
579
580 If a @nt{select_statement} contains both a @nt{terminate_alternative} and an
581 @nt{accept_alternative} for an interrupt entry, then an implementation is
582 allowed to impose further requirements for the selection of the
583 @nt{terminate_alternative} in addition to those given in
584 @RefSecNum{Task Dependence - Termination of Tasks}.
585 @end{ImplPerm}
586
587 @begin{Notes}
588 @ChgRef{Version=[1],Kind=[Revised],Ref=[8652/0077],ARef=[AI95-00111-01]}
589 Queued interrupts correspond to ordinary entry calls. Interrupts that are
590 lost if not immediately processed correspond to conditional entry calls. It
591 is a consequence of the priority rules that an @Chg{New=[@nt{accept_statement}],
592 Old=[accept body]} executed in response to an interrupt can be executed with
593 the active priority at which the hardware generates the interrupt, taking
594 precedence over lower priority tasks, without a scheduling action.
595
596 Control information that is supplied upon an interrupt can be passed to an
597 associated interrupt entry as one or more parameters of mode @key[in].
598 @end{Notes}
599
600 @begin{Examples}
601 @leading@keepnext@i{Example of an interrupt entry:}
602 @begin{example}
603 @key[task] Interrupt_Handler @key[is]
604 @key[entry] Done;
605 @key[for] Done'Address @key[use] Ada.Interrupts.Reference(Ada.Interrupts.Names.Device_Done);
606 @key[end] Interrupt_Handler;
607
608 @end{example}
609 @end{Examples}
610
611 @begin{DiffWord83}
612
613 @ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00114-01]}
614 RM83-13.5.1 did not adequately address the problems
615 @Chg{Version=[2],New=[associated],Old=[associate]} with
616 interrupts. This feature is now obsolescent and is replaced by the Ada 95
617 interrupt model as specified in the Systems Programming Annex.
618 @end{DiffWord83}
619
620 @begin{DiffWord95}
621 @ChgRef{Version=[2],Kind=[AddedNormal],Ref=[8652/0077],ARef=[AI95-00111-01]}
622 @Chg{Version=[2],New=[@b<Corrigendum:> The undefined term @i{accept body}
623 was replaced by @nt{accept_statement}.], Old=[]}
624 @end{DiffWord95}
625
626 @RMNewPageVer{Version=[2]}@Comment{For printed version of Ada 2005 RM}
627 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
628 @LabeledClause{Mod Clauses}
629
630 @begin{Syntax}
631 @Syn{lhs=<mod_clause>,rhs="@key{at} @key{mod} @SynI{static_}@Syn2{expression};"}
632 @end{Syntax}
633
634 @begin{StaticSem}
635 @leading@keepnext@;A @nt{record_representation_clause} of the form:
636 @begin{example}
637 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0092-1]}
638 @key[for] @RI{r} @key[use]
639 @key[record] @key[at] @key[mod] @RI{a}@Chg{Version=[3],New=[;],Old=[]}
640 ...
641 @key[end] @key[record];
642 @end{example}
643
644 @leading@keepnext@;is equivalent to:
645 @begin{example}
646 @key[for] @RI{r}'Alignment @key[use] @RI{a};
647 @key[for] @RI{r} @key[use]
648 @key[record]
649 ...
650 @key[end] @key[record];
651 @end{example}
652 @begin{Reason}
653 The preferred syntax for specifying the alignment of an entity is an
654 @nt{attribute_definition_clause} specifying the Alignment attribute.
655 Therefore, the special-purpose @nt{mod_clause} syntax is now
656 obsolete.
657
658 The above equivalence implies, for example, that it is illegal to give both
659 a @nt{mod_clause}
660 and an @nt{attribute_definition_clause} specifying the Alignment attribute
661 for the same type.
662 @end{Reason}
663 @end{StaticSem}
664
665 @begin{DiffWord83}
666 Ada 83's @ntf{alignment_clause} is now called a @nt{mod_clause} to avoid
667 confusion with the new term @lquotes@;Alignment clause@rquotes@; (that is, an
668 @nt{attribute_definition_clause} for the Alignment attribute).
669 @end{DiffWord83}
670
671 @LabeledClause{The Storage_Size Attribute}
672
673 @begin{StaticSem}
674 @Leading@;For any task subtype T, the following attribute is defined:
675 @begin{Description}
676 T'@attr{Storage_Size} @\Denotes an implementation-defined value
677 of type @i{universal_integer}
678 representing the number of storage
679 elements reserved for a task of the subtype T.
680 @begin{Honest}
681 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0229-1]}
682 T'Storage_Size cannot be particularly meaningful in the presence of
683 @Chg{Version=[3],New=[the specification of the aspect],Old=[a @nt{pragma}]}
684 Storage_Size, especially when the expression is dynamic, or
685 depends on a discriminant of the task,
686 because the Storage_Size will be different for different objects of the type.
687 Even without such a @Chg{Version=[3],New=[specification],Old=[@nt{pragma}]},
688 the Storage_Size can be different for different objects of the type,
689 and in any case, the value is implementation defined.
690 Hence, it is always implementation defined.
691 @end{Honest}
692
693 @NoPrefix@ChgRef{Version=[2],Kind=[Revised],ARef=[AI95-00345-01]}
694 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0229-1]}
695 @PDefn2{Term=[specifiable], Sec=(of Storage_Size for a task
696 first subtype)}
697 @NoPrefix@;Storage_Size may be specified for a task first subtype
698 @Chg{Version=[2],New=[that is not an interface ],Old=[]}via
699 an @nt{attribute_definition_clause}.@Chg{Version=[3],New=[
700 When the attribute is specified, the Storage_Size aspect
701 is specified to be the value of the given @nt{expression}.],Old=[]}
702 @end{Description}
703
704 @begin{Ramification}
705 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
706 @ChgAdded{Version=[3],Text=[When this attribute is specified with an
707 @nt{attribute_definition_clause}, the associated aspect is set to the
708 @i<value> of the @nt{expression} given in the @nt{attribute_definition_clause},
709 rather than the @nt{expression} itself.
710 This value is therefore the same for all objects of the type; in particular,
711 it is not re-evaluated when objects are created. This is different than
712 when the aspect is specified with an @nt{aspect_specification}
713 (see @RefSecNum{Operational and Representation Attributes}).]}
714 @end{Ramification}
715
716 @end{StaticSem}
717
718 @begin{DiffWord95}
719 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00345-01]}
720 @ChgAdded{Version=[2],Text=[We don't allow specifying Storage_Size on
721 task interfaces. We don't need to mention class-wide task types, because
722 these cannot be a first subtype.]}
723 @end{DiffWord95}
724
725 @LabeledAddedClause{Version=[2],Name=[Specific Suppression of Checks]}
726
727 @begin{Intro}
728 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
729 @ChgAdded{Version=[2],Text=[Pragma Suppress can be used to suppress checks on
730 specific entities.]}
731 @end{Intro}
732
733 @begin{Syntax}
734 @begin{SyntaxText}
735 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
736 @ChgAdded{Version=[2],KeepNext=[T],Type=[Leading],Text=[The form of a specific
737 Suppress @nt{pragma} is as follows:]}
738 @end{SyntaxText}
739
740 @ChgRef{Version=[2],Kind=[AddedNormal]}
741 @Chg{Version=[2],
742 New=`@ @ @key{pragma} @prag{Suppress}(@Syn2{identifier}, [On =>] @Syn2{name});',
743 Old=<>}
744 @end{Syntax}
745
746 @begin{Legality}
747 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
748 @ChgAdded{Version=[2],Text=[The @nt{identifier} shall be the name of a check
749 (see @RefSecNum{Suppressing Checks}). The @nt{name} shall
750 statically denote some entity.]}
751
752 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
753 @ChgAdded{Version=[2],Text=[For a specific Suppress @nt{pragma} that is
754 immediately within a @nt{package_specification}, the @nt{name} shall denote an
755 entity (or several overloaded subprograms) declared immediately within the
756 @nt{package_@!specification}.]}
757 @end{Legality}
758
759 @begin{StaticSem}
760 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
761 @ChgAdded{Version=[2],Text=[A specific Suppress @nt{pragma} applies to the
762 named check from the place of the @nt{pragma} to the end of the innermost
763 enclosing declarative region, or, if the @nt{pragma} is given in a
764 @nt{package_specification}, to the end of the scope of the named entity. The
765 @nt{pragma} applies only to the named entity, or, for a subtype, on objects and
766 values of its type. A specific Suppress @nt{pragma} suppresses the named check
767 for any entities to which it applies (see @RefSecNum{Suppressing Checks}).
768 Which checks are associated with a specific entity is not defined by this
769 International Standard.]}
770
771 @ChgRef{Version=[2],Kind=[AddedNormal]}
772 @begin{Discussion}
773 @ChgAdded{Version=[2],Text=[The language doesn't specify exactly which entities
774 control whether a check is performed. For example, in]}
775 @begin{Example}
776 @Chg{Version=[2],New=[@key{pragma} Suppress (Range_Check, On => A);
777 A := B;],Old=[]}
778 @end{Example}
779 @ChgAdded{Version=[2],Text=[whether or not the range check is performed is not
780 specified. The compiler may require that checks are suppressed on B or on the
781 type of A in order to omit the range check.]}
782 @end{Discussion}
783 @end{StaticSem}
784
785 @begin{ImplPerm}
786 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
787 @ChgAdded{Version=[2],Text=[An implementation is allowed to place restrictions on
788 specific Suppress @nt{pragma}s.]}
789 @end{ImplPerm}
790
791 @begin{Notes}
792 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
793 @ChgAdded{Version=[2],Text=[An implementation may support a similar On parameter on
794 @nt{pragma} Unsuppress (see @RefSecNum{Suppressing Checks}).]}
795 @end{Notes}
796
797 @begin{DiffWord95}
798 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00224-01]}
799 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]}
800 @ChgAdded{Version=[2],Text=[This @Chg{Version=[3],New=[subclause],Old=[clause]}
801 is new. This feature was moved here
802 because it is important for pragma Unsuppress that there be an unambiguous
803 meaning for each checking pragma. For instance, in the example]}
804 @begin{Example}
805 @ChgAdded{Version=[2],Text=[@key{pragma} Suppress (Range_Check);
806 @key{pragma} Unsuppress (Range_Check, On => A);
807 A := B;]}
808 @end{Example}
809 @ChgAdded{Version=[2],Text=[the user needs to be able to depend on the range check
810 being made on the assignment. But a compiler survey showed that the
811 interpretation of this feature varied widely; trying to define this carefully
812 was likely to cause a lot of user and implementer pain. Thus the feature was
813 moved here, to emphasize that its use is not portable.]}
814 @end{DiffWord95}
815
816
817 @LabeledAddedClause{Version=[2],Name=[The Class Attribute of Untagged Incomplete Types]}
818
819
820 @begin{StaticSem}
821 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00326-01]}
822 @ChgAdded{Version=[2],Type=[Leading],Text=[For the first subtype S of a type
823 @i<T> declared by an @nt<incomplete_type_declaration> that is not tagged, the
824 following attribute is defined:]}
825 @begin{Description}
826 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00326-01]}
827 @Chg{Version=[2],New=[S'@attr{Class} @\Denotes the first subtype of the
828 incomplete class-wide type rooted at @i<T>. The completion of @i<T> shall
829 declare a tagged type. Such an attribute reference shall occur in the same
830 library unit as the @nt<incomplete_type_declaration>.],Old=[]}
831 @end{Description}
832 @begin{Reason}
833 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00326-01]}
834 @ChgAdded{Version=[2],Text=[This must occur in the same unit to prevent
835 children from imposing requirements on their ancestor library
836 units for deferred incomplete types.]}
837 @end{reason}
838 @end{StaticSem}
839
840 @begin{DiffWord95}
841 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00326-01]}
842 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]}
843 @ChgAdded{Version=[2],Text=[This @Chg{Version=[3],New=[subclause],Old=[clause]}
844 is new. This feature was moved here
845 because the tagged incomplete type provides a better way to provide this
846 capability (it doesn't put requirements on the completion based on uses that
847 could be anywhere). Pity we didn't think of it in 1994.]}
848 @end{DiffWord95}
849
850
851 @LabeledAddedClause{Version=[2],Name=[Pragma Interface]}
852
853 @begin{Syntax}
854 @begin{SyntaxText}
855 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00284-02]}
856 @ChgAdded{Version=[2],Text=[In addition to an identifier, the reserved word
857 @key{interface} is allowed as a pragma name, to provide compatibility with a prior
858 edition of this International Standard.]}
859 @end{SyntaxText}
860 @end{Syntax}
861
862 @begin{ImplNote}
863 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00284-02]}
864 @ChgAdded{Version=[2],Text=[All implementations need to at least recognize and
865 ignore this pragma. A syntax error is not an acceptable implementation of
866 this pragma.]}
867 @end{ImplNote}
868
869 @begin{DiffWord95}
870 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00326-01]}
871 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]}
872 @ChgAdded{Version=[2],Text=[This @Chg{Version=[3],New=[subclause],Old=[clause]}
873 is new. This is necessary as @key{interface}
874 is now a reserved word, which would prevent pragma Interface from being an
875 implementation-defined pragma. We don't define any semantics for this
876 pragma, as we expect that implementations will continue to use whatever they
877 currently implement - requiring any changes would be counter-productive.]}
878 @end{DiffWord95}
879
880
881 @LabeledAddedClause{Version=[2],Name=[Dependence Restriction Identifiers]}
882
883 @begin{Intro}
884 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
885 @ChgAdded{Version=[2],Text=[The following restrictions involve dependence
886 on specific language-defined units. The more general restriction No_Dependence
887 (see @RefSecNum{Language-Defined Restrictions and Profiles}) should be
888 used for this purpose.]}
889 @end{Intro}
890
891
892 @begin{StaticSem}
893
894 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
895 @ChgAdded{Version=[2],Type=[Leading],
896 Text=[The following @Syni<restriction_>@nt<identifier>s exist:]}
897
898 @begin{Description}
899
900 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
901 @ChgAdded{Version=[2],Text=[@Defn2{Term=[Restrictions],
902 Sec=(No_Asynchronous_Control)}No_Asynchronous_Control @\Semantic dependence
903 on the predefined package Asynchronous_Task_Control is not allowed.]}
904
905 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
906 @ChgAdded{Version=[2],Text=[@Defn2{Term=[Restrictions],
907 Sec=(No_Unchecked_Conversion)}No_Unchecked_Conversion @\Semantic
908 dependence on the predefined generic function Unchecked_Conversion is not
909 allowed.]}
910
911 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
912 @ChgAdded{Version=[2],Text=[@Defn2{Term=[Restrictions],
913 Sec=(No_Unchecked_Deallocation)}No_Unchecked_Deallocation @\Semantic
914 dependence on the predefined generic procedure Unchecked_Deallocation is
915 not allowed.]}
916
917 @end{Description}
918 @end{StaticSem}
919
920 @begin{DiffWord95}
921 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
922 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]}
923 @ChgAdded{Version=[2],Text=[This @Chg{Version=[3],New=[subclause],Old=[clause]}
924 is new. These restrictions
925 are replaced by the more general No_Dependence
926 (see @RefSecNum{Language-Defined Restrictions and Profiles}).]}
927 @end{DiffWord95}
928
929 @RMNewPageVer{Version=[2]}@Comment{For printed version of Ada 2005 RM}
930 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
931 @LabeledAddedClause{Version=[2],Name=[Character and Wide_Character Conversion Functions]}
932
933 @begin{StaticSem}
934
935 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00395-01]}
936 @ChgAdded{Version=[2],Type=[Leading],
937 Text=[The following declarations exist in the declaration of package
938 Ada.Characters.Handling:]}
939
940 @begin{Example}
941 @ChgRef{Version=[2],Kind=[AddedNormal]}
942 @ChgAdded{Version=[2],Text=[ @key{function} Is_Character (Item : @key{in} Wide_Character) @key{return} Boolean
943 @key{renames} Conversions.Is_Character;
944 @key{function} Is_String (Item : @key{in} Wide_String) @key{return} Boolean
945 @key{renames} Conversions.Is_String;]}
946
947 @ChgRef{Version=[2],Kind=[AddedNormal]}
948 @ChgAdded{Version=[2],Text=[ @key{function} To_Character (Item : @key{in} Wide_Character;
949 Substitute : @key{in} Character := ' ')
950 @key{return} Character
951 @key{renames} Conversions.To_Character;]}
952
953 @ChgRef{Version=[2],Kind=[AddedNormal]}
954 @ChgAdded{Version=[2],Text=[ @key{function} To_String (Item : @key{in} Wide_String;
955 Substitute : @key{in} Character := ' ')
956 @key{return} String
957 @key{renames} Conversions.To_String;]}
958
959 @ChgRef{Version=[2],Kind=[AddedNormal]}
960 @ChgAdded{Version=[2],Text=[ @key{function} To_Wide_Character (Item : @key{in} Character) @key{return} Wide_Character
961 @key{renames} Conversions.To_Wide_Character;]}
962
963 @ChgRef{Version=[2],Kind=[AddedNormal]}
964 @ChgAdded{Version=[2],Text=[ @key{function} To_Wide_String (Item : @key{in} String) @key{return} Wide_String
965 @key{renames} Conversions.To_Wide_String;]}
966 @end{Example}
967 @end{StaticSem}
968
969 @begin{DiffWord95}
970 @ChgRef{Version=[2],Kind=[AddedNormal],ARef=[AI95-00394-01]}
971 @ChgRef{Version=[3],Kind=[Revised],ARef=[AI05-0299-1]}
972 @ChgAdded{Version=[2],Text=[This @Chg{Version=[3],New=[subclause],Old=[clause]}
973 is new. These subprograms were moved to Characters.Conversions
974 (see @RefSecNum{The Package Characters.Conversions}).]}
975 @end{DiffWord95}
976
977 @LabeledAddedClause{Version=[3],Name=[Aspect-related Pragmas]}
978
979 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
980 @ChgAdded{Version=[3],Text=[Pragmas can be used as an alternative to
981 aspect_specifications to specify certain aspects.]}
982
983 @begin{DiffWord2005}
984 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
985 @ChgAdded{Version=[3],Text=[This subclause is new. Many existing pragmas have
986 been converted into aspects; the pragmas have moved here.]}
987 @end{DiffWord2005}
988
989 @LabeledAddedSubClause{Version=[3],Name=[Pragma Inline]}
990
991 @begin{Syntax}
992 @begin{SyntaxText}
993 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
994 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
995 Inline, which is a program unit pragma (see @RefSecNum{Pragmas and Program Units}),
996 is as follows:@PDefn2{Term=[program unit pragma], Sec=(Inline)}
997 @PDefn2{Term=[pragma, program unit], Sec=(Inline)}]}
998 @end{SyntaxText}
999
1000 @ChgRef{Version=[3],Kind=[AddedNormal]}
1001 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1002 Text=[@key{pragma} @prag<Inline> (@Syn2[name]{, @Syn2[name]});]}>
1003 @end{Syntax}
1004
1005 @begin{Legality}
1006 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1007 @ChgAdded{Version=[3],Text=[The @nt{pragma} shall apply to one or more
1008 callable entities or generic subprograms.]}
1009 @end{Legality}
1010
1011 @begin{StaticSem}
1012 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1013 @ChgAdded{Version=[3],Text=[@nt{Pragma} Inline specifies that the Inline aspect
1014 (see @RefSecNum{Inline Expansion of Subprograms}) for each
1015 entity denoted by each @nt{name} given in the @nt{pragma} has the value True.]}
1016
1017 @begin{Ramification}
1018 @ChgRef{Version=[3],Kind=[AddedNormal]}
1019 @ChgAdded{Version=[3],Type=[Leading],Text=[Note that inline expansion is
1020 desired no matter what @nt{name} is used in the call. This allows one to request
1021 inlining for only one of several overloaded subprograms as follows:]}
1022
1023 @begin{Example}
1024 @ChgRef{Version=[3],Kind=[AddedNormal]}
1025 @ChgAdded{Version=[3],Text=[@key[package] IO @key[is]
1026 @key[procedure] Put(X : @key[in] Integer);
1027 @key[procedure] Put(X : @key[in] String);
1028 @key[procedure] Put(X : @key[in] Character);
1029 @key[private]
1030 @key[procedure] Character_Put(X : @key[in] Character) @key[renames] Put;
1031 @key[pragma] Inline(Character_Put);
1032 @key[end] IO;]}
1033
1034 @ChgRef{Version=[3],Kind=[AddedNormal]}
1035 @ChgAdded{Version=[3],Text=[@key[with] IO; @key[use] IO;
1036 @key[procedure] Main @key[is]
1037 I : Integer;
1038 C : Character;
1039 @key[begin]
1040 ...
1041 Put(C); --@Examcom{ Inline expansion is desired.}
1042 Put(I); --@Examcom{ Inline expansion is NOT desired.}
1043 @key[end] Main;]}
1044 @end{Example}
1045 @end{Ramification}
1046 @end{StaticSem}
1047
1048 @begin{ImplPerm}
1049 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1050 @ChgAdded{Version=[3],Text=[An implementation may allow a @nt{pragma} Inline
1051 that has an argument which is a @nt{direct_name} denoting a
1052 @nt{subprogram_body} of the same @nt{declarative_part}.]}
1053
1054 @begin{Reason}
1055 @ChgRef{Version=[3],Kind=[AddedNormal]}
1056 @ChgAdded{Version=[3],Text=[This is allowed for Ada 83 compatibility. This is
1057 only a permission as this usage was considered obsolescent even for Ada 95.]}
1058 @end{Reason}
1059
1060 @begin{Discussion}
1061 @ChgRef{Version=[3],Kind=[AddedNormal]}
1062 @ChgAdded{Version=[3],Text=[We only need to allow this in @nt{declarative_part}s,
1063 because a @nt{body} is only allowed in another @nt{body}, and these all have
1064 @nt{declarative_part}s.]}
1065 @end{Discussion}
1066 @end{ImplPerm}
1067
1068 @begin{Notes}
1069 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1070 @ChgAdded{Version=[3],Text=[The name in a @nt{pragma} Inline may denote more
1071 than one entity in the case of overloading. Such a @nt{pragma} applies to
1072 all of the denoted entities.]}
1073 @end{Notes}
1074
1075 @begin{Incompatible83}
1076 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI95-00309-01],ARef=[AI05-0229-1]}
1077 @ChgAdded{Version=[3],Text=[@Defn{incompatibilities with Ada 83}
1078 A pragma Inline cannot refer to a @nt{subprogram_body} outside of that
1079 body. The pragma can be given inside of the subprogram body. Ada 2005
1080 adds an @ImplPermName to allow this usage for compatibility (and
1081 Ada 95 implementations also can use this permission), but
1082 implementations do not have to allow such @nt{pragma}s.]}
1083 @end{Incompatible83}
1084
1085 @begin{Extend83}
1086 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1087 @ChgAdded{Version=[3],Text=[@Defn{extensions to Ada 83}
1088 A @nt{pragma} Inline is allowed inside a @nt{subprogram_body} if there
1089 is no corresponding @nt{subprogram_declaration}.
1090 This is for uniformity with other program unit pragmas.]}
1091 @end{Extend83}
1092
1093 @begin{Extend95}
1094 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI95-00309-01],ARef=[AI05-0229-1]}
1095 @ChgAdded{Version=[3],Text=[@Defn{extensions to Ada 95}
1096 @b[Amendment Correction:] Implementations are allowed to let @nt{Pragma}
1097 Inline apply to a @nt{subprogram_body}.]}
1098 @end{Extend95}
1099
1100 @begin{DiffWord2005}
1101 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1102 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Inline was moved
1103 here from @RefSecNum{Inline Expansion of Subprograms}; aspect Inline lives
1104 there now.]}
1105 @end{DiffWord2005}
1106
1107
1108 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
1109 @LabeledAddedSubClause{Version=[3],Name=[Pragma No_Return]}
1110
1111 @begin{Syntax}
1112 @begin{SyntaxText}
1113 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1114 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1115 No_Return, which is a representation pragma
1116 (see @RefSecNum{Operational and Representation Aspects}),
1117 is as follows:@PDefn2{Term=[representation pragma], Sec=(No_Return)}
1118 @PDefn2{Term=[pragma, representation], Sec=(No_Return)}]}
1119 @end{SyntaxText}
1120
1121 @ChgRef{Version=[3],Kind=[AddedNormal]}
1122 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1123 Text=[@key{pragma} @prag<No_Return> (@SynI[procedure_]@Syn2[local_name]{, @SynI[procedure_]@Syn2[local_name]});]}>
1124 @end{Syntax}
1125
1126 @begin{Legality}
1127 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1128 @ChgAdded{Version=[3],Text=[Each @SynI{procedure_}@nt{local_name}
1129 shall denote one or more procedures or generic procedures.
1130 @Redundant[The @SynI{procedure_}@nt{local_name} shall not denote a null
1131 procedure nor an instance of a generic unit.]]}
1132 @end{Legality}
1133
1134 @begin{StaticSem}
1135 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1136 @ChgAdded{Version=[3],Text=[@nt{Pragma} No_Return specifies that the No_Return
1137 aspect (see @RefSecNum{Nonreturning Procedures}) for each procedure denoted
1138 by each @nt{local_name} given in the @nt{pragma} has the value True.]}
1139 @end{StaticSem}
1140
1141 @begin{DiffWord2005}
1142 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1143 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma No_Return was moved
1144 here from @RefSecNum{Nonreturning Procedures}; aspect No_Return lives
1145 there now.]}
1146 @end{DiffWord2005}
1147
1148
1149 @LabeledAddedSubClause{Version=[3],Name=[Pragma Pack]}
1150
1151 @begin{Syntax}
1152 @begin{SyntaxText}
1153 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1154 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1155 Pack, which is a representation pragma
1156 (see @RefSecNum{Operational and Representation Aspects}),
1157 is as follows:@PDefn2{Term=[representation pragma], Sec=(Pack)}
1158 @PDefn2{Term=[pragma, representation], Sec=(Pack)}]}
1159 @end{SyntaxText}
1160
1161 @ChgRef{Version=[3],Kind=[AddedNormal]}
1162 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1163 Text=[@key{pragma} @prag<Pack> (@SynI[first_subtype_]@Syn2[local_name]);]}>
1164 @end{Syntax}
1165
1166
1167 @begin{Legality}
1168 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1169 @ChgAdded{Version=[3],Text=[The @SynI<first_subtype_>@nt{local_name} of a
1170 @nt{pragma} Pack shall denote a composite subtype.]}
1171 @end{Legality}
1172
1173 @begin{StaticSem}
1174 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1175 @ChgAdded{Version=[3],Text=[@nt{Pragma}
1176 Pack specifies that the Pack aspect (see @RefSecNum{Packed Types}) for the type
1177 denoted by @SynI<first_subtype_>@nt{local_name} has the value True.]}
1178 @end{StaticSem}
1179
1180 @begin{DiffWord2005}
1181 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1182 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Pack was moved
1183 here from @RefSecNum{Packed Types}; aspect Pack lives
1184 there now.]}
1185 @end{DiffWord2005}
1186
1187
1188 @LabeledAddedSubClause{Version=[3],Name=[Pragma Storage_Size]}
1189
1190 @begin{Syntax}
1191 @begin{SyntaxText}
1192 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1193 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1194 Storage_Size is as follows:]}
1195 @end{SyntaxText}
1196
1197 @ChgRef{Version=[3],Kind=[AddedNormal]}
1198 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1199 Text=[@key{pragma} @prag<Storage_Size> (@Syn2[expression]);]}>
1200
1201 @begin{SyntaxText}
1202 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1203 @ChgAdded{Version=[3],Text=[A @nt{pragma} Storage_Size is allowed only
1204 immediately within a @nt{task_definition}.]}
1205 @end{SyntaxText}
1206 @end{Syntax}
1207
1208 @begin{Resolution}
1209 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1210 @ChgAdded{Version=[3],Text=[The @nt{expression} of a @nt{pragma} Storage_Size
1211 is expected to be of any integer type.@PDefn2{Term=[expected type], Sec=(Storage_Size pragma argument)}]}
1212 @end{Resolution}
1213
1214 @begin{StaticSem}
1215 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1216 @ChgAdded{Version=[3],Text=[The @nt{pragma} Storage_Size sets the
1217 Storage_Size aspect (see @RefSecNum{Operational and Representation Attributes})
1218 of the type defined by the immediately enclosing @nt{task_definition}
1219 to the value of the @nt{expression} of the @nt{pragma}.]}
1220 @end{StaticSem}
1221
1222 @begin{DiffWord2005}
1223 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1224 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Storage_Size was moved
1225 here from @RefSecNum{Operational and Representation Attributes};
1226 aspect Storage_Size lives there now.]}
1227 @end{DiffWord2005}
1228
1229
1230 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
1231 @LabeledAddedSubClause{Version=[3],Name=[Interfacing Pragmas]}
1232
1233 @begin{Syntax}
1234 @begin{SyntaxText}
1235 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1236 @ChgAdded{Version=[3],Type=[Leading],Text=[@RootDefn{interfacing pragma}
1237 @PDefn2{Term=[interfacing pragma], Sec=(Import)}
1238 @PDefn2{Term=[pragma, interfacing], Sec=(Import)}
1239 @PDefn2{Term=[interfacing pragma], Sec=(Export)}
1240 @PDefn2{Term=[pragma, interfacing], Sec=(Export)}
1241 @PDefn2{Term=[interfacing pragma], Sec=(Convention)}
1242 @PDefn2{Term=[pragma, interfacing], Sec=(Convention)}
1243 @PDefn2{Term=[representation pragma], Sec=(Import)}
1244 @PDefn2{Term=[pragma, representation], Sec=(Import)}
1245 @PDefn2{Term=[representation pragma], Sec=(Export)}
1246 @PDefn2{Term=[pragma, representation], Sec=(Export)}
1247 @PDefn2{Term=[representation pragma], Sec=(Convention)}
1248 @PDefn2{Term=[pragma, representation], Sec=(Convention)}
1249 An @i{interfacing pragma} is a representation pragma that is
1250 one of the @nt{pragma}s Import, Export,
1251 or Convention. Their forms are as follows:]}
1252 @end{SyntaxText}
1253 @ChgRef{Version=[3],Kind=[AddedNormal]}
1254 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1255 Text=`@key{pragma} @prag(Import)(@*
1256 @ @ @ @ @ [Convention =>] @SynI{convention_}@Syn2{identifier}, [Entity =>] @Syn2{local_name}@*
1257 @ @ [, [External_Name =>] @SynI{external_name_string_}@Syn2{expression}]@*
1258 @ @ [, [Link_Name =>] @SynI{link_name_string_}@Syn2{expression}]);'}>
1259
1260 @ChgRef{Version=[3],Kind=[AddedNormal]}
1261 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1262 Text=`@key{pragma} @prag(Export)(@*
1263 @ @ @ @ @ [Convention =>] @SynI{convention_}@Syn2{identifier}, [Entity =>] @Syn2{local_name}@*
1264 @ @ [, [External_Name =>] @SynI{external_name_string_}@Syn2{expression}]@*
1265 @ @ [, [Link_Name =>] @SynI{link_name_string_}@Syn2{expression}]);'}>
1266
1267 @ChgRef{Version=[3],Kind=[AddedNormal]}
1268 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1269 Text=`@key{pragma} @prag(Convention)([Convention =>] @SynI{convention_}@Syn2{identifier},[Entity =>] @Syn2{local_name});'}>
1270
1271 @begin{SyntaxText}
1272 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1273 @ChgAdded{Version=[3],Text=[For @nt{pragma}s Import and Export, the argument
1274 for Link_Name shall not be given without the
1275 @i{pragma_@!argument_}@!@nt{identifier}
1276 unless the argument for External_Name is given.]}
1277 @end{SyntaxText}
1278 @end{Syntax}
1279
1280
1281 @begin{Resolution}
1282 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1283 @ChgAdded{Version=[3],Text=[@PDefn2{Term=[expected type],Sec=(link name)}
1284 @PDefn2{Term=[expected type],Sec=(external name)} The expected type for an
1285 @SynI{external_name_string_}@nt{expression} and a
1286 @SynI{link_name_string_}@nt{expression} in an interfacing pragma is String.]}
1287 @end{Resolution}
1288
1289 @begin{Legality}
1290 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1291 @ChgAdded{Version=[3],Text=[The @SynI{convention_}@nt{identifier} of an
1292 interfacing pragma shall be the name of a convention
1293 (see @RefSecNum{Interfacing Aspects}).]}
1294
1295 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1296 @ChgAdded{Version=[3],Text=[A @nt{pragma} Import shall be the completion of a
1297 declaration. @PDefn{Notwithstanding}Notwithstanding any rule to the
1298 contrary, a @nt{pragma} Import may serve as the completion of any kind of
1299 (explicit) declaration if supported by an implementation for that kind of
1300 declaration. If a completion is a @nt{pragma} Import, then it shall appear in
1301 the same @nt{declarative_part}, @nt{package_specification},
1302 @nt{task_definition}, or @nt{protected_definition} as the declaration. For a
1303 library unit, it shall appear in the same @nt{compilation}, before any
1304 subsequent @nt{compilation_unit}s other than @nt{pragma}s. If the
1305 @nt{local_name} denotes more than one entity, then the @nt{pragma} Import is the
1306 completion of all of them.]}
1307
1308 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1309 @ChgAdded{Version=[3],Text=[The @SynI{external_name_string_}@nt{expression} and
1310 @SynI{link_name_string_}@nt{expression} of a @nt{pragma} Import or Export shall
1311 be static.]}
1312
1313 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1314 @ChgAdded{Version=[3],Text=[The @nt{local_name} of each of these pragmas
1315 shall denote a declaration that may have the similarly named aspect specified.]}
1316 @end{Legality}
1317
1318 @begin{StaticSem}
1319 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1320 @ChgAdded{Version=[3],Type=[Leading],Text=[An interfacing pragma specifies
1321 various aspects of the entity denoted by the @nt{local_name} as follows:]}
1322 @begin{Itemize}
1323 @ChgRef{Version=[3],Kind=[AddedNormal]}
1324 @ChgAdded{Version=[3],Text=[The Convention aspect (see
1325 @RefSecNum{Interfacing Aspects}) is @SynI{convention_}@nt{identifier}.]}
1326
1327 @ChgRef{Version=[3],Kind=[AddedNormal]}
1328 @ChgAdded{Version=[3],Text=[A @nt{pragma} Import specifies that the Import
1329 aspect (see @RefSecNum{Interfacing Aspects}) is True.]}
1330
1331 @ChgRef{Version=[3],Kind=[AddedNormal]}
1332 @ChgAdded{Version=[3],Text=[A @nt{pragma} Export specifies that the Export
1333 aspect (see @RefSecNum{Interfacing Aspects}) is True.]}
1334
1335 @ChgRef{Version=[3],Kind=[AddedNormal]}
1336 @ChgAdded{Version=[3],Text=[For both @nt{pragma} Import and Export, if an external
1337 name is given in the pragma, the External_Name aspect (see
1338 @RefSecNum{Interfacing Aspects}) is specified to be
1339 @SynI{external_name_string_}@nt{expression}. If a link name is given in the
1340 pragma, the Link_Name aspect (see @RefSecNum{Interfacing Aspects}) is
1341 specified to be the @SynI{link_name_string_}@nt{expression}.]}
1342 @end{Itemize}
1343 @end{StaticSem}
1344
1345 @begin{DiffWord2005}
1346 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1347 @ChgAdded{Version=[3],Text=[This subclause is new. Pragmas Import, Export, and
1348 Convention were moved here from @RefSecNum{Interfacing Aspects}; aspects
1349 Import, Export, Convention, Link_Name, and External_Name live there now.]}
1350 @end{DiffWord2005}
1351
1352
1353 @LabeledAddedSubClause{Version=[3],Name=[Pragma Unchecked_Union]}
1354
1355 @begin{Syntax}
1356 @begin{SyntaxText}
1357 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1358 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1359 Unchecked_Union, which is a representation pragma
1360 (see @RefSecNum{Operational and Representation Aspects}),
1361 is as follows:@PDefn2{Term=[representation pragma], Sec=(Unchecked_Union)}
1362 @PDefn2{Term=[pragma, representation], Sec=(Unchecked_Union)}]}
1363 @end{SyntaxText}
1364
1365 @ChgRef{Version=[3],Kind=[AddedNormal]}
1366 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1367 Text=[@key{pragma} @prag<Unchecked_Union> (@SynI[first_subtype_]@Syn2[local_name]);]}>
1368 @end{Syntax}
1369
1370 @begin{Legality}
1371 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1372 @ChgAdded{Version=[3],Text=[The @SynI<first_subtype_>@nt{local_name} of a
1373 @nt{pragma} Unchecked_Union shall denote an
1374 unconstrained discriminated record subtype having a @nt{variant_part}.]}
1375 @end{Legality}
1376
1377 @begin{StaticSem}
1378 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1379 @ChgAdded{Version=[3],Text=[A @nt{pragma} Unchecked_Union specifies that
1380 the Unchecked_Union aspect (see @RefSecNum{Unchecked Union Types})
1381 for the type denoted by @SynI<first_subtype_>@nt{local_name} has the value
1382 True.]}
1383 @end{StaticSem}
1384
1385 @begin{DiffWord2005}
1386 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1387 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Unchecked_Union was
1388 moved here from @RefSecNum{Unchecked Union Types}; aspect Unchecked_Union
1389 lives there now.]}
1390 @end{DiffWord2005}
1391
1392
1393 @LabeledAddedSubClause{Version=[3],Name=[Pragmas Interrupt_Handler and Attach_Handler]}
1394
1395 @begin{Syntax}
1396 @begin{SyntaxText}
1397 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1398 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1399 Interrupt_Handler is as follows:]}
1400 @end{SyntaxText}
1401
1402 @ChgRef{Version=[3],Kind=[AddedNormal]}
1403 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1404 Text=[@key{pragma} @prag<Interrupt_Handler> (@SynI[handler_]@Syn2[name]);]}>
1405
1406 @begin{SyntaxText}
1407 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1408 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1409 Attach_Handler is as follows:]}
1410 @end{SyntaxText}
1411
1412 @ChgRef{Version=[3],Kind=[AddedNormal]}
1413 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1414 Text=[@key{pragma} @prag<Attach_Handler> (@SynI[handler_]@Syn2[name], @Syn2[expression]);]}>
1415 @end{Syntax}
1416
1417 @begin{Resolution}
1418 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1419 @ChgAdded{Version=[3],Text=[For the Interrupt_Handler and Attach_Handler
1420 pragmas, the @SynI[handler_]@nt{name} shall resolve to denote a protected
1421 procedure with a parameterless profile.]}
1422
1423 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1424 @ChgAdded{Version=[3],Text=[For the Attach_Handler pragma, the expected type for
1425 the expression is Interrupts.Interrupt_Id (see @RefSecNum{The Package Interrupts}).
1426 @PDefn2{Term=[expected type], Sec=(Attach_Handler pragma second argument)}]}
1427 @end{Resolution}
1428
1429 @begin{Legality}
1430 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0033-1],ARef=[AI05-0229-1]}
1431 @ChgAdded{Version=[3],Text=[The Attach_Handler and Interrupt_Handler pragmas
1432 are only allowed immediately within the @nt{protected_definition} where the corresponding subprogram is declared.
1433 The corresponding @nt{protected_type_declaration} or @nt{single_protected_declaration}
1434 shall be a library-level declaration, and shall not be declared within a generic
1435 body.
1436 @PDefn{generic contract issue}
1437 In addition to the places where Legality Rules normally apply (see
1438 @RefSecNum{Generic Instantiation}), these rules also apply in the private part
1439 of an instance of a generic unit.]}
1440 @begin{Discussion}
1441 @ChgRef{Version=[3],Kind=[AddedNormal]}
1442 @ChgAdded{Version=[3],Text=[In the case of a @nt{protected_type_declaration},
1443 an @nt{object_declaration} of an object of that type
1444 need not be at library level.]}
1445
1446 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0033-1]}
1447 @ChgAdded{Version=[3],Text=[We cannot allow these pragmas in a generic body,
1448 because legality rules are not checked for instance bodies, and these should
1449 not be allowed if the instance is not at the library level. The protected types
1450 can be declared in the private part if this is desired. Note that while the
1451 'Access to use the handler would provide the check in the case of
1452 Interrupt_Handler, there is no other check for Attach_Handler. Since these
1453 pragmas are so similar, we want the rules to be the same.]}
1454 @end{Discussion}
1455
1456 @end{Legality}
1457
1458 @begin{StaticSem}
1459 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1460 @ChgAdded{Version=[3],Text=[For an implementation that supports Annex C, a
1461 pragma Interrupt_Handler specifies the Interrupt_Handler aspect (see
1462 @RefSecNum{Protected Procedure Handlers}) for
1463 the protected procedure @SynI<handler_>@nt{name} to have the value True. For an
1464 implementation that supports Annex C, a pragma Attach_Handler specifies the
1465 Attach_Handler aspect (see @RefSecNum{Protected Procedure Handlers}) for
1466 the protected procedure @SynI{handler_}@nt{name} to
1467 have the value of the given @nt{expression}@Redundant[ as evaluated at object
1468 creation time].]}
1469 @end{StaticSem}
1470
1471 @begin{Incompatible2005}
1472 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0033-1]}
1473 @ChgAdded{Version=[3],Text=[@Defn{incompatibilities with Ada 2005}@b<Correction:>
1474 Added missing generic contract wording for the pragma Attach_Handler and
1475 Interrupt_Handler. This means that nested instances with these pragmas in the
1476 private part are now illegal. This is not likely to occur in practice.]}
1477 @end{Incompatible2005}
1478
1479 @begin{DiffWord2005}
1480 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1481 @ChgAdded{Version=[3],Text=[This subclause is new. Pragmas Interrupt_Handler
1482 and Attach_Handler were moved here from @RefSecNum{Protected Procedure Handlers};
1483 aspects Interrupt_Handler and Attach_Handler live there now.]}
1484 @end{DiffWord2005}
1485
1486
1487 @NotISORMNewPageVer{Version=[3]}@Comment{For printed version of Ada 2012 RM}
1488 @LabeledAddedSubClause{Version=[3],Name=[Shared Variable Pragmas]}
1489
1490 @begin{Syntax}
1491 @begin{SyntaxText}
1492 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1493 @ChgAdded{Version=[3],Type=[Leading],Text=[The form for @nt{pragma}s
1494 Atomic, Volatile, Independent, Atomic_Components, and
1495 Volatile_Components, and Independent_Components is as follows:]}
1496 @end{SyntaxText}
1497
1498 @ChgRef{Version=[3],Kind=[AddedNormal]}
1499 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1500 Text=[@key{pragma} @prag<Atomic> (@Syn2[local_name]);]}>
1501
1502 @ChgRef{Version=[3],Kind=[AddedNormal]}
1503 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1504 Text=[@key{pragma} @prag<Volatile> (@Syn2[local_name]);]}>
1505
1506 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1]}
1507 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1508 Text=[@key{pragma} @prag<Independent> (@SynI[component_]@Syn2[local_name]);]}>
1509
1510 @ChgRef{Version=[3],Kind=[AddedNormal]}
1511 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1512 Text=[@key{pragma} @prag<Atomic_Components> (@SynI[array_]@Syn2[local_name]);]}>
1513
1514 @ChgRef{Version=[3],Kind=[AddedNormal]}
1515 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1516 Text=[@key{pragma} @prag<Volatile_Components> (@SynI[array_]@Syn2[local_name]);]}>
1517
1518 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1]}
1519 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1520 Text=[@key{pragma} @prag<Independent_Components> (@Syn2[local_name]);]}>
1521
1522 @begin{Discussion}
1523 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1],ARef=[AI05-0229-1]}
1524 @ChgAdded{Version=[3],Text=[Pragmas Independent and Independent_Components
1525 are born obsolescent; they are defined to provide consistency with the existing
1526 shared variable pragmas. As with all obsolescent
1527 features, these pragmas are not optional; all Ada implementations need to
1528 implement them. Also note that these pragmas were defined as a @b<Correction>;
1529 as such, they are expected to be implemented as part of Ada 2005
1530 implementations (and they would not be obsolescent there).]}
1531 @end{Discussion}
1532
1533 @end{Syntax}
1534
1535 @begin{Resolution}
1536 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1],ARef=[AI05-0229-1]}
1537 @ChgAdded{Version=[3],Text=[The @nt{local_name} in an Atomic or Volatile pragma
1538 shall resolve to denote either an @nt{object_declaration}, a noninherited
1539 @nt{component_declaration}, or a @nt{full_type_declaration}. The
1540 @SynI{component_}@nt{local_name} in an Independent pragma shall resolve to
1541 denote a noninherited @nt{component_declaration}. The @SynI{array_}@nt{local_name}
1542 in an Atomic_Components or Volatile_Components pragma shall resolve to denote
1543 the declaration of an array type or an array object of an anonymous type. The
1544 @nt{local_name} in an Independent_Components pragma shall resolve to denote the
1545 declaration of an array or record type or an array object of an anonymous
1546 type.]}
1547 @end{Resolution}
1548
1549 @begin{StaticSem}
1550 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1551 @ChgAdded{Version=[3],Text=[These @nt{pragma}s are representation pragmas
1552 (see @RefSecNum{Operational and Representation Aspects}).
1553 Each of these @nt{pragma}s specifies that the similarly named aspect
1554 (see @RefSecNum{Shared Variable Control}) of the
1555 type, object, or component denoted by its argument is True.
1556 @PDefn2{Term=[representation pragma], Sec=(Atomic)}
1557 @PDefn2{Term=[pragma, representation], Sec=(Atomic)}
1558 @PDefn2{Term=[representation pragma], Sec=(Volatile)}
1559 @PDefn2{Term=[pragma, representation], Sec=(Volatile)}
1560 @PDefn2{Term=[representation pragma], Sec=(Atomic_Components)}
1561 @PDefn2{Term=[pragma, representation], Sec=(Atomic_Components)}
1562 @PDefn2{Term=[representation pragma], Sec=(Volatile_Components)}
1563 @PDefn2{Term=[pragma, representation], Sec=(Volatile_Components)}
1564 @PDefn2{Term=[representation pragma], Sec=(Independent)}
1565 @PDefn2{Term=[pragma, representation], Sec=(Independent)}
1566 @PDefn2{Term=[representation pragma], Sec=(Independent_Components)}
1567 @PDefn2{Term=[pragma, representation], Sec=(Independent_Components)}]}
1568 @end{StaticSem}
1569
1570 @begin{Legality}
1571 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1572 @ChgAdded{Version=[3],Text=[The @nt{local_name} of each of these @nt{pragma}s
1573 shall denote a declaration that may have the similarly named aspect specified.]}
1574 @end{Legality}
1575
1576 @begin{DiffWord2005}
1577 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1578 @ChgAdded{Version=[3],Text=[This subclause is new. These pragmas
1579 were moved here from @RefSecNum{Shared Variable Control};
1580 various aspects live there now.]}
1581 @end{DiffWord2005}
1582
1583
1584 @LabeledAddedSubClause{Version=[3],Name=[Pragma CPU]}
1585
1586 @begin{Discussion}
1587 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1588 @ChgAdded{Version=[3],Text=[This pragma is born obsolescent; it is defined to
1589 provide consistency with existing real-time pragmas. As with all obsolescent
1590 features, this pragma is not optional; all Ada implementations need to
1591 implement it.]}
1592 @end{Discussion}
1593
1594 @begin{Syntax}
1595 @begin{SyntaxText}
1596 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1597 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1598 CPU is as follows:]}
1599 @end{SyntaxText}
1600
1601 @ChgRef{Version=[3],Kind=[AddedNormal]}
1602 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1603 Text=[@key{pragma} @prag<CPU> (@Syn2[expression]);]}>
1604
1605 @end{Syntax}
1606
1607 @begin{Resolution}
1608 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1609 @ChgAdded{Version=[3],Text=[The expected type for the @nt{expression} of a
1610 @nt{pragma} CPU is
1611 System.Multiprocessors.CPU_Range.@PDefn2{Term=[expected type], Sec=(CPU pragma argument)}]}
1612 @end{Resolution}
1613
1614 @begin{Legality}
1615 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1616 @ChgAdded{Version=[3],Text=[A CPU pragma is allowed only immediately within a
1617 @nt{task_definition}, or the @nt{declarative_part} of a @nt{subprogram_body}.]}
1618
1619 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1620 @ChgAdded{Version=[3],Text=[For a CPU pragma that appears in the
1621 @nt{declarative_part} of a @nt{subprogram_body}, the @nt{expression} shall be
1622 static.]}
1623 @end{Legality}
1624
1625 @begin{StaticSem}
1626 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1627 @ChgAdded{Version=[3],Text=[For an implementation that supports Annex D, a
1628 @nt{pragma} CPU specifies the value of the CPU aspect (see
1629 @RefSecNum{Multiprocessor Implementation}). If the @nt{pragma} appears in a
1630 @nt{task_definition}, the @nt{expression} is associated with the aspect for the
1631 task type or @nt{single_task_declaration} that contains the @nt{pragma};
1632 otherwise, the @nt{expression} is associated with the aspect for the subprogram
1633 that contains the @nt{pragma}.]}
1634 @end{StaticSem}
1635
1636 @begin{Extend2005}
1637 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1]}
1638 @ChgAdded{Version=[3],Text=[@Defn{extensions to Ada 2005}Pragma
1639 CPU is new.]}
1640 @end{Extend2005}
1641
1642
1643 @LabeledAddedSubClause{Version=[3],Name=[Pragma Dispatching_Domain]}
1644
1645 @begin{Discussion}
1646 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0167-1]}
1647 @ChgAdded{Version=[3],Text=[This pragma is born obsolescent; it is defined to
1648 provide consistency with existing real-time pragmas. As with all obsolescent
1649 features, this pragma is not optional; all Ada implementations need to
1650 implement it.]}
1651 @end{Discussion}
1652
1653 @begin{Syntax}
1654
1655 @begin{SyntaxText}
1656 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0167-1]}
1657 @ChgAdded{Version=[3],Type=[Leading],Keepnext=[T],Text=[The form of a
1658 @nt{pragma} Dispatching_Domain is as follows:]}
1659 @end{SyntaxText}
1660
1661 @ChgRef{Version=[3],Kind=[AddedNormal]}
1662 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1663 Text=[@key{pragma} @prag<Dispatching_Domain> (@nt{expression});]}>
1664
1665 @end{Syntax}
1666
1667 @begin{Resolution}
1668 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0167-1]}
1669 @ChgAdded{Version=[3],Text=[The expected type for the @nt{expression} is
1670 System.Multiprocessors.Dispatching_Domains.Dispatching_Domain.
1671 @PDefn2{Term=[expected type], Sec=(Dispatching_Domains pragma argument)}]}
1672 @end{Resolution}
1673
1674 @begin{Legality}
1675 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0167-1]}
1676 @ChgAdded{Version=[3],Text=[A Dispatching_Domain pragma is allowed only
1677 immediately within a @nt{task_definition}.]}
1678 @end{Legality}
1679
1680 @begin{StaticSem}
1681 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0167-1]}
1682 @ChgAdded{Version=[3],Text=[For an implementation that supports Annex D, a
1683 pragma Dispatching_Domain specifies the value of the Dispatching_Domain aspect
1684 (see @RefSecNum{Multiprocessor Dispatching Domains}). The @nt{expression} is
1685 associated with the aspect for the task type or @nt{single_task_declaration}
1686 that contains the pragma.]}
1687 @end{StaticSem}
1688
1689 @begin{Extend2005}
1690 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0009-1]}
1691 @ChgAdded{Version=[3],Text=[@Defn{extensions to Ada 2005}Pragma
1692 Dispatching_Domain is new.]}
1693 @end{Extend2005}
1694
1695
1696 @LabeledAddedSubClause{Version=[3],Name=[Pragmas Priority and Interrupt_Priority]}
1697
1698 @begin{Syntax}
1699
1700 @begin{SyntaxText}
1701 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1702 @ChgAdded{Version=[3],Type=[Leading],Keepnext=[T],Text=[The form of a
1703 @nt{pragma} Priority is as follows:]}
1704 @end{SyntaxText}
1705
1706 @ChgRef{Version=[3],Kind=[AddedNormal]}
1707 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1708 Text=[@key{pragma} @prag<Priority> (@nt{expression});]}>
1709
1710 @begin{SyntaxText}
1711 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1712 @ChgAdded{Version=[3],Type=[Leading],Keepnext=[T],Text=[The form of a
1713 @nt{pragma} Interrupt_Priority is as follows:]}
1714 @end{SyntaxText}
1715
1716 @ChgRef{Version=[3],Kind=[AddedNormal]}
1717 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1718 Text=[@key{pragma} @prag<Interrupt_Priority> [(@nt{expression})];]}>
1719
1720 @end{Syntax}
1721
1722 @begin{Resolution}
1723 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1724 @ChgAdded{Version=[3],Text=[The expected type for the @nt{expression}
1725 in a Priority or Interrupt_Priority pragma is
1726 Integer.@PDefn2{Term=[expected type], Sec=(Priority pragma argument)}
1727 @PDefn2{Term=[expected type], Sec=(Interrupt_Priority pragma argument)}]}
1728 @end{Resolution}
1729
1730 @begin{Legality}
1731 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1732 @ChgAdded{Version=[3],Text=[A Priority pragma is allowed only immediately
1733 within a @nt{task_definition}, a @nt{protected_definition}, or the
1734 @nt{declarative_part} of a @nt{subprogram_body}. An Interrupt_Priority pragma is
1735 allowed only immediately within a @nt{task_definition} or a
1736 @nt{protected_definition}.]}
1737
1738 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1739 @ChgAdded{Version=[3],Text=[For a Priority pragma that appears in the
1740 @nt{declarative_part} of a @nt{subprogram_body},
1741 the @nt{expression} shall be static, and its value shall be in the range of
1742 System.Priority.]}
1743 @end{Legality}
1744
1745 @begin{StaticSem}
1746
1747 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1748 @ChgAdded{Version=[3],Type=[Leading],Text=[For an implementation that supports
1749 Annex D, a @nt{pragma} Priority specifies the value of the Priority aspect (see
1750 @RefSecNum{Task Priorities}) and a @nt{pragma} Interrupt_Priority specifies the
1751 value of the Interrupt_Priority aspect as follows:]}
1752
1753 @begin{Itemize}
1754
1755 @ChgRef{Version=[3],Kind=[AddedNormal]}
1756 @ChgAdded{Version=[3],Text=[If the @nt{pragma} appears in a @nt{task_definition},
1757 the @nt{expression} is associated with the aspect for the task type or
1758 @nt{single_task_declaration} that contains the @nt{pragma};]}
1759
1760 @ChgRef{Version=[3],Kind=[AddedNormal]}
1761 @ChgAdded{Version=[3],Text=[If the @nt{pragma} appears in a @nt{protected_definition},
1762 the @nt{expression} is associated with the aspect for the protected type or
1763 @nt{single_protected_declaration} that contains the @nt{pragma};]}
1764
1765 @ChgRef{Version=[3],Kind=[AddedNormal]}
1766 @ChgAdded{Version=[3],Text=[If the @nt{pragma} appears in the @nt{declarative_part}
1767 of a @nt{subprogram_body}, the @nt{expression} is associated with the
1768 aspect for the subprogram that contains the @nt{pragma}.]}
1769
1770 @end{Itemize}
1771
1772 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1773 @ChgAdded{Version=[3],Text=[If there is no @nt{expression} in an
1774 Interrupt_Priority pragma, the Interrupt_Priority aspect has the value
1775 Interrupt_Priority'Last.]}
1776 @end{StaticSem}
1777
1778 @begin{DiffWord2005}
1779 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1780 @ChgAdded{Version=[3],Text=[This subclause is new. Pragmas Interrupt_Priority
1781 and Priority were moved here from @RefSecNum{Task Priorities};
1782 aspects Interrupt_Priority and Priority live there now.]}
1783 @end{DiffWord2005}
1784
1785
1786 @LabeledAddedSubClause{Version=[3],Name=[Pragma Relative_Deadline]}
1787
1788 @begin{Syntax}
1789
1790 @begin{SyntaxText}
1791 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1792 @ChgAdded{Version=[3],Type=[Leading],Keepnext=[T],Text=[The form of a
1793 @nt{pragma} Relative_Deadline is as follows:]}
1794 @end{SyntaxText}
1795
1796 @ChgRef{Version=[3],Kind=[AddedNormal]}
1797 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1798 Text=[@key{pragma} @prag<Relative_Deadline> (@SynI{relative_deadline_}@nt{expression});]}>
1799
1800 @end{Syntax}
1801
1802 @begin{Resolution}
1803 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1804 @ChgAdded{Version=[3],Text=[The expected type for a
1805 @SynI{relative_deadline_}@nt{expression} is
1806 Real_Time.Time_Span.@PDefn2{Term=[expected type], Sec=(Relative_Deadline pragma argument)}]}
1807 @end{Resolution}
1808
1809 @begin{Legality}
1810 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1811 @ChgAdded{Version=[3],Text=[A Relative_Deadline pragma is allowed only
1812 immediately within a @nt{task_definition} or the @nt{declarative_part}
1813 of a @nt{subprogram_body}.]}
1814 @end{Legality}
1815
1816 @begin{StaticSem}
1817 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1818 @ChgAdded{Version=[3],Text=[For an implementation that supports Annex D, a
1819 @nt{pragma} Relative_Deadline specifies the value of the Relative_Deadline
1820 aspect (see @RefSecNum{Earliest Deadline First Dispatching}). If the @nt{pragma}
1821 appears in a @nt{task_definition}, the @nt{expression} is associated with the
1822 aspect for the task type or @nt{single_task_declaration} that contains the
1823 @nt{pragma}; otherwise, the @nt{expression} is associated with the aspect
1824 for the subprogram that contains the @nt{pragma}.]}
1825 @end{StaticSem}
1826
1827 @begin{DiffWord2005}
1828 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1829 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Relative_Deadline
1830 was moved here from @RefSecNum{Earliest Deadline First Dispatching};
1831 aspect Relative_Deadline lives there now.]}
1832 @end{DiffWord2005}
1833
1834
1835 @LabeledAddedSubClause{Version=[3],Name=[Pragma Asynchronous]}
1836
1837 @begin{Syntax}
1838 @begin{SyntaxText}
1839 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1840 @ChgAdded{Version=[3],Type=[Leading],Text=[The form of a @nt{pragma}
1841 Asynchronous, which is a representation pragma
1842 (see @RefSecNum{Operational and Representation Aspects}),
1843 is as follows:@PDefn2{Term=[representation pragma], Sec=(Asynchronous)}
1844 @PDefn2{Term=[pragma, representation], Sec=(Asynchronous)}]}
1845 @end{SyntaxText}
1846
1847 @ChgRef{Version=[3],Kind=[AddedNormal]}
1848 @AddedPragmaSyn<Version=[3],@ChgAdded{Version=[3],
1849 Text=[@key{pragma} @prag<Asynchronous> (@Syn2[local_name]);]}>
1850 @end{Syntax}
1851
1852 @begin{StaticSem}
1853 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1854 @ChgAdded{Version=[3],Text=[For an implementation that supports Annex E, a
1855 pragma Asynchronous specifies that the Asynchronous aspect (see
1856 @RefSecNum{Asynchronous Remote Calls}) for the procedure or type denoted by
1857 @nt{local_name} has the value True.]}
1858 @end{StaticSem}
1859
1860 @begin{Legality}
1861 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1]}
1862 @ChgAdded{Version=[3],Text=[The @nt{local_name} of a pragma Asynchronous shall
1863 denote a declaration that may have aspect Asynchronous specified.]}
1864 @end{Legality}
1865
1866 @begin{DiffWord2005}
1867 @ChgRef{Version=[3],Kind=[AddedNormal],ARef=[AI05-0229-1],ARef=[AI05-0299-1]}
1868 @ChgAdded{Version=[3],Text=[This subclause is new. Pragma Asynchronous
1869 was moved here from @RefSecNum{Asynchronous Remote Calls};
1870 aspect Asynchronous lives there now.]}
1871 @end{DiffWord2005}
1872
1873