Why Use Packages?

There are several reasons why you might want to use packages. Three important reasons are discussed in the following sections: code reduction, application partitioning, and component containment.

Code Reduction

A primary reason behind using packages is to reduce the size of your applications and DLLs. Delphi already ships with several predefined packages that break up the VCL into logical groupings. In fact, you can choose to compile your application so that it assumes the existence of many of these Delphi packages.

A Smaller Distribution of Applications— Application Partitioning

You'll find that many programs are available over the Internet as full-blown applications, downloadable demos, or updates to existing applications. ...

Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.