[Lazarus] Namespace

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Jan 11 22:42:37 CET 2011


Marcos Douglas schrieb:

>> So if rxlib would take the namespace "rx" (on top of units), and someone
>> else did also take that namespace, then you have the same problem....
> 
> You right... but, of course at Namespaces will be much longer than "rx"!
> The "name_of_company" + "name_of_lib" will be a good example.

When namespaces correspond to unit names, i.e. disk files, a 
disambiguation is always possible by adding the parent directory to the 
unit name. This is not implemented, because there never existed an 
urgent need for such an extension, but it would always end up in unique 
  references, because file systems disallow for duplicate file names 
within a folder. Not so for namespaces...

DoDi





More information about the Lazarus mailing list