[fpc-devel] Purpose of "uses ... in"?

Marcos Douglas md at delfire.net
Tue Jul 20 20:02:14 CEST 2010

On Tue, Jul 20, 2010 at 2:50 PM, Zaher Dirkey <parmaja at gmail.com> wrote:
> 2010/7/19 Mattias Gärtner <nc-gaertnma at 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:
 zip IN '/units/my/zip.pas' AS myzip;
 zip IN '/units/lib/zip/zip.pas' AS ziplib;

...someone liked the idea?  :(


More information about the fpc-devel mailing list