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

Marco van de Voort marcov at stack.nl
Wed Jul 14 20:22:45 CEST 2010


In our previous episode, Marcos Douglas said:
> > sure that that all filenames are unique. This because there are still two
> > uses clauses will cause problems.
> 
> You're right :(
> And if we can do that:
> uses
>   zip IN '/units/my/zip.pas' AS myzip;
>   zip IN '/units/lib/zip/zip.pas' AS ziplib;
> 
> Now, I can point the real path and I can use 'n' units with the same name.
> What do you think about it?

Still the same problem. If you forget one, or do one wrongly, it will become
a mess. Better avoid the mess altogether, and keep unique names.

Moreover, everybody still has to edit everything to
substitute their own paths.
 



More information about the fpc-devel mailing list