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

Marcos Douglas md at delfire.net
Wed Jul 14 20:36:53 CEST 2010

On Wed, Jul 14, 2010 at 3:22 PM, Marco van de Voort <marcov at stack.nl> wrote:
> 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.

Not still, you know...  ;-)
But I agree it will (maybe) become a mess. However this would be an
option (not default) for this some cases. Considering that "in" syntax
is still existing...  ;-)

Well, just my 2 cents...


More information about the fpc-devel mailing list