Duplicate package references
The compiler ignores duplicate references in a package's requires clause. For programming clarity and readability,
however, duplicate references should be removed.
The contains clause
The contains clause identifies the unit files to be bound into the package. Do not include file-name extensions in the
contains clause.
Avoiding redundant source code uses
A package cannot be listed in the contains clause of another package or the uses clause of a unit.
All units included directly in a package's contains clause, or indirectly in the uses clauses of those units, are bound
into the package at compile time. The units contained (directly or indirectly) in a package cannot be contained in any
other packages referenced in requires clause of that package.
A unit cannot be contained (directly or indirectly) in more than one package used by the same application.
Dostları ilə paylaş: