[Lazarus] Namespace

Sven Barth pascaldragon at googlemail.com
Wed Jan 12 10:05:52 CET 2011


Am 11.01.2011 22:42, schrieb Hans-Peter Diettrich:
> 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...

That idea has a little problem: In Pascal ABC and abc are the same 
identifiers while on most Linux filesystems ABC and abc are two 
different "identifiers". I can even force that situation on Windows with 
NTFS (yes, NTFS supports case sensitive file names).

Regards,
Sven




More information about the Lazarus mailing list