|
VMS Help ADA, Language Topics, Compilation Units *Conan The Librarian |
A compilation unit is a unit that can be compiled as an
independent part of the program. A compilation unit can be any
of the following:
o Subprogram declaration
o Subprogram body
o Package declaration
o Package body
o Generic declaration (subprogram or package)
o Generic instantiation
o Subunit (subprogram, package body, or task body)
You can precede a compilation unit with a context clause, which
names other compilation units upon which the unit depends by
means of one or more 'with' clauses.
Example:
procedure MAIN;
with SYSTEM, TEXT_IO; use SYSTEM, TEXT_IO;
package LIST_MANAGER is
...
begin
...
end LIST_MANAGER;
Additional Information (explode) :
|
|