1 The current unit namespace (if any)
2 The project default namespace (if any)
3 Namespaces specified by compiler options.
A namespace search example The following example project and unit files use the namespace clause to establish a namespace search list:
// Project file declarations...
program MyCompany.Programs.MyProgram;
namespaces MyCompany.Libs.UIWidgets, MyCompany.Libs.Network;
21
// Unit source file declaration...
unit MyCompany.Programs.Units.MyUnit1;
Given this program example, the compiler would search namespaces in the following order: