More formally, an Ada program is composed of one or more program units. A program unit can be a:
The latter three are advanced topics, so we will concentrate for now on packages and subprograms.
The package is structurally the most important kind of program unit. Most Ada programs are basically a set of a large number of packages, with one procedure used as the ``main'' procedure to start the Ada program.
In section 1-1 we defined a simple procedure called Hello. What kind of program unit was procedure Hello?
Go back to the previous section | Skip to the next section | Go up to lesson 2 outline |
---|
David A. Wheeler (dwheeler@ida.org)
The master copy of this file is at "http://www.adahome.com/Tutorials/Lovelace/s2s1.htm".