Packages




Introduction



Package Provide Services


Package are Modules


Packages, Classes, and Types


Packages Have Two Parts


Example Package


Packages and ADTs


Definition: Client of a Package




Files and Compilations



Packages and Files


Packages: Normal Compilation


Gnatmake is Smart





Basic Syntax and Semantics



Package Specification and Body


Spec and Body Consistency


Visibility of Package to Client


Package Visibility Between Spec and Body


Package Visibility






With and Use and Packages



With and Use


More on Use


with vs import vs include





Files and Compilations - Continued



More on Compiling Packages


Compiling Package Specs and Bodies Independently


Compiling Client and Package Specs Without Body


Compilation and Linking




Classes, Packages, Records


Types and Modules: Conflated in Java