[Lazarus] Extending TRect breaks Lazarus

J├╝rgen Hestermann juergen.hestermann at gmx.de
Sat Nov 7 11:39:44 CET 2015


Am 2015-11-06 um 18:26 schrieb Ondrej Pokorny:
 > So yes, let's not use with :)
 > ... There is no problem with long variable names at all. There are CodeTools :)

CodeTools do not help you *read* the code.

I prefer to have this:

-----------------------------
with PathArray[High(PathArray)]^ do
    fillchar(StatisticOfFiles,sizeof(StatisticOfFiles),0);
-----------------------------

instead of this:

-----------------------------
fillchar(PathArray[High(PathArray)]^.StatisticOfFiles,sizeof(PathArray[High(PathArray)]^.StatisticOfFiles),0);
-----------------------------

Also, the problem of the WITH statement is the same as for identifiers declared in other units.
Do you also preceed variables from a used unit with the unit name?






More information about the Lazarus mailing list