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 8 for .NET 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 8 for .NET compiler does support hierarchical .NET namespaces; this topic is covered in the following section, Using Namespaces with Delphi.

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook

Post a comment