Debian Codegraph @

source_2005/pre_ada.mss

raw
1 @comment{ $Source: e:\\cvsroot/ARM/Source/pre_ada.mss,v $ }
2 @comment{ $Revision: 1.15 $ $Date: 00/03/08 Created by RLB to avoid Includes }
3 @Part(predefstandard, Root="ada.mss")
4
5 @Comment{$Date: 2000/08/31 04:56:06 $}
6
7 @LabeledClause{The Package Ada}
8
9 @begin{StaticSem}
10 @Leading@keepnext@;The following language-defined library package exists:
11 @begin{Example}
12 @RootLibUnit{Ada}@key[package] Ada @key[is]
13 @key[pragma] Pure(Ada);
14 @key[end] Ada;
15 @end{Example}
16
17 Ada serves as the parent of most of the other language-defined library
18 units; its declaration is empty (except for the @nt{pragma} Pure).
19 @end{StaticSem}
20
21 @begin{Legality}
22 In the standard mode, it is illegal to compile a child of package
23 Ada.
24 @begin{Reason}
25 The intention is that mentioning, say, Ada.Text_IO in a
26 @nt{with_clause} is guaranteed (at least in the standard mode) to refer
27 to the standard version of Ada.Text_IO.
28 The user can compile a root library unit Text_IO that has no relation to
29 the standard version of Text_IO.
30 @end{Reason}
31 @begin{Ramification}
32 Note that Ada can have non-language-defined grandchildren,
33 assuming the implementation allows it.
34 Also, packages System and Interfaces can have children,
35 assuming the implementation allows it.
36 @end{Ramification}
37 @begin{ImplNote}
38 An implementation will typically support a nonstandard mode in
39 which compiling the language defined library units is allowed.
40 Whether or not this mode is made available to users is up to the
41 implementer.
42
43 An implementation could theoretically have private children of
44 Ada, since that would be semantically neutral.
45 However, a programmer cannot compile such a library unit.
46 @end{ImplNote}
47 @end{Legality}
48
49 @begin{Extend83}
50 @Defn{extensions to Ada 83}
51 This clause is new to Ada 95.
52 @end{Extend83}