[fpc-devel] Purpose of "uses ... in"?
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jul 14 16:45:23 CEST 2010
On Wed, 14 Jul 2010 10:26:11 -0300
Marcos Douglas <md at delfire.net> wrote:
> On Wed, Jul 14, 2010 at 10:03 AM, Hans-Peter Diettrich
> <DrDiettrich1 at aol.com> wrote:
> > Thaddy schrieb:
> >
> >> 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.....
> >
> > Just in the FPC compiler case many unit names are hard coded, while the
> > files to use reside e.g. in a specific machine directory, selected in the
> > search path. When it becomes desireable to replace only one of these files,
> > as happened to me, then a solution could be to name that replacement file
> > differently from its contained unit name.
> >
> > Then it would be helpful to allow for exchangable file names, at least at
> > project/program level. Only then one can be sure that a specific file is
> > used across the entire project, regardless of all other files in the search
> > path.
>
> I am surprised as there is no conflict of names of units in the FPC / Lazarus.
Of course there are. For example unit dialogs. This is solved by the
search path.
There are even conflicting names in the system unit. For example the
system unit has a THandle that is 32bit under linux 64bit, but Lazarus
needs a THandle that is 64bit under 64bit. Gladfully the system unit is
searched last.
> There are names very short, which could be used as variable names...
Mattias
More information about the fpc-devel
mailing list