On Tue, Jul 20, 2010 at 2:50 PM, Zaher Dirkey <parm...@gmail.com> wrote:
> 2010/7/19 Mattias Gärtner <nc-gaert...@netcologne.de>
>>
>> Even then: If you move/rename a directory with target units, you have to
>> adapt all 'in' of using units.
>> If you use search paths you only have to adapt one.
>
> example
>
> uses
>    myunit in '..\lib\myunit.pas', ...
>
> it is no need to change it even in the search path.

I agree.
But I agree too the search path has advantages... because that I
mentioned keep the both (today, it is, right?).

And, in addition, I sugest to implement a new syntax for units of the
same name using "IN" and "AS" as bellow:
uses
 zip IN '/units/my/zip.pas' AS myzip;
 zip IN '/units/lib/zip/zip.pas' AS ziplib;

...someone liked the idea?  :(


MD
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to