alternative aliases [Re: [fpc-devel] Re: [fpc-pascal] Re: Ideas for namespace implementation]

Martin fpc at mfriebe.de
Tue Jul 27 13:27:32 CEST 2010


On 27/07/2010 10:32, Alexander Klenin wrote:
> Also a good idea.
> Two points:
> 1) It is very important to allow relative search paths,
> with well-defined semantics.
> Otherwise, projects would quickly become non-portable between machines.
>
> 2) Another alternative to consider is path-based namespaces,
> i.e. "uses Path.To.Lib1.Utils" would
> use unit "{project root}/path/to/lib1/utils.pas"
> The advantage is no need for extra compiler configuration.
> I think that ability to use plain
> "fpc myproject.pas" to build the whole project is an important
> advantage which would be lost with your alias proposal.
>
>    
Great feedback, thanks.

I added several point to 
http://wiki.lazarus.freepascal.org/Namespaces#Mapping_Namespace_to_each_search_path




More information about the fpc-devel mailing list