[fpc-pascal] dot within unit file name

Matt Emson memsom at interalpha.co.uk
Fri Jan 18 14:56:39 CET 2008


Marco van de Voort wrote:
>> Michael Fuchs wrote:
>>     
>>> But how can fpc find the unit which contains this namespace? I think 
>>> better is: Namespace = unit name = file name
>>> It is easier to allow a dot in the unit name than writing code, which 
>>> search all units for the right naemspace.
>>>
>>>       
>> The filename would be "MyAPI.Blah.pas" as you indicate.
>>     
>
> And if I import "blah" what would be imported? As far as I can see this is
> no real advantage, except allowing dots in unitnames
>   

No, you would import "MyAPI.Blah"...

I would say, remove "unit" replace with "Namespace" and all would be 
fine. Thinking about it, the Chrome dialect is a better model.




More information about the fpc-pascal mailing list