[fpc-pascal] dot within unit file name
Michael Fuchs
freepascal at ypa-software.de
Fri Jan 18 13:48:25 CET 2008
Matt Emson schrieb:
> Turning it on its head - file names should have nothing to do with unit
> names. The unit lives in a namespace, The namespace directive gives the
> path to the unit. so it would be:
>
> unit Blah;
> namespace MyAPI
>
> and
>
> uses MyAPI.Blah;
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.
g
Micha
More information about the fpc-pascal
mailing list