[fpc-devel] Fix CamelCase in unit and method names

Sven Barth pascaldragon at googlemail.com
Fri Mar 23 19:34:54 CET 2018


R0b0t1 <r030t1 at gmail.com> schrieb am Fr., 23. März 2018, 16:07:

> >
> > IMHO preferably not the unit names (as in 'unit XxX') - with case
> > sensitive file names on Unix, this change might increase time for
> > searching the respective file (somewhat). Obviously, all further
> > references of the unit (as in 'SysUtils.Execute') should be fine.
> >
>
> I don't understand how it would increase the search time. I believe
> what happens is all names are converted to lowercase for the search,
> as in the strings taken from the user or their files and the names
> taken from the disk are both converted to lower case before
> comparisons are made.
>

FPC first looks for the unit with the name as is, then lower case and
finally upper case.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180323/1892a30f/attachment.html>


More information about the fpc-devel mailing list