containsClause;
end.
where
packageName is any valid identifier. The
requiresClause and
containsClause are both optional. For example,
the following code declares the
DATAX
package.
package DATAX;
requires
rtl,
contains Db, DBLocal, DBXpress, ... ;
end.
The requires clause lists other, external packages used by the package being declared. It consists of the directive
requires, followed by a comma-delimited list of package names, followed by a semicolon. If a package does not
reference other packages, it does not need a requires clause.
The contains clause identifies the unit files to be compiled and bound into the package. It consists of the directive
contains, followed by a comma-delimited list of unit names, followed by a semicolon. Any unit name may be followed
by the reserved word in and the name of a source file, with or without a directory path, in single quotation marks;
directory paths can be absolute or relative. For example,
contains MyUnit in 'C:\MyProject\MyUnit.pas';
Dostları ilə paylaş: