Programs and Units A Delphi program is constructed from source code modules called units. The units are tied together by a special
source code module that contains either the program, library, or package header. Each unit is stored in its own file
and compiled separately; compiled units are linked to create an application. Delphi 2005 introduces hierarchical
namespaces, giving you even more flexibility in organizing your units. Namespaces and units allow you to
Divide large programs into modules that can be edited separately.
Create libraries that you can share among programs.
Distribute libraries to other developers without making the source code available.
This topic covers the overall structure of a Delphi application: the program header, unit declaration syntax, and the
uses clause. Specific differences between the Win32 and .NET platforms are noted in the text. The Delphi compiler
does not support .NET namespaces on the Win32 platform. The Delphi 2005 compiler does support
hierarchical .NET namespaces; this topic is covered in the following section, Using Namespaces with Delphi.