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

Marcos Douglas md at delfire.net
Wed Jul 14 13:27:16 CEST 2010

On Wed, Jul 14, 2010 at 7:49 AM, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Thaddy said:
>> >
>> Yes, but that defeats unit aliasing by renaming: like "uses foo in
>> "bar.pas"" instead of "uses foo" (implies "in foo.pas"). Did somebody
>> mention this in the discussion?
>> Programmers are not very imaginative in naming. It is plainly helpfull
>> to be able to rename a file if another file with a different content.....
> I really wonder what the point is of such hack. You still have to walk all
> references to add  ( in ' '), so you might as well do a proper rename.
> In the past it was sometimes used to have long unit names refer to 8.3
> filenames, but I haven't really cared about 8.3 for almost a decade now.

I prefer to use search path instead of "in", but I think it's a good
idea to use aliases for units. As Thaddy said "Programmers are not
very imaginative in naming". I agree.
I always nominate my units with prefix to haven't name conflicts with
other units.


More information about the fpc-devel mailing list