On Tue, Nov 17, 2015 at 8:15 AM, Michael Van Canneyt <mich...@freepascal.org
> wrote:

> Simply said: You can't. The lnet one needs to be renamed.
> One day when namespaces will be generally used, that should solve itself.
> (but then that is of course the same as renaming)
>

Why not make -Fu option be "package" specific instead?
In this case "lnet" would search for openssl.pas in its own directory
rather than packages/openssl ?

Since the compiler doesn't operate a "package"entity, make it based of the
directory structure.
(Due to nature of package sources, which typically reside in their own
directory).
For example:
 for any source in "./lnet" use "-Fu./"
 default  "-Fu./package/ssl"

It's sort of namespace based on the file names.

As a result no actual namespace, code changes or file renaming are needed.

thanks,
Dmitry
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to