[fpc-pascal] dot within unit file name

Michael Fuchs freepascal at ypa-software.de
Fri Jan 18 13:34:32 CET 2008


Michael Van Canneyt schrieb:

>> unit Blah;
>> Namespace MyAPI.Blah;
> 
> And how will you know which namespace is in what unit (or file) ?
> 
> You then need a second structure mapping namespaces on filenames, making it
> slower, bulkier and error prone. The cure is worse than the disease, IMHO.

You are right. The better way is "unit MyAPI.Blah;". The Namespace is 
the unit name.

g
Micha



More information about the fpc-pascal mailing list