[Lazarus] Extending TRect breaks Lazarus

Lukasz Sokol el.es.cr at gmail.com
Mon Nov 9 10:38:27 CET 2015


On 07/11/15 11:01, Mattias Gaertner wrote:
> On Sat, 7 Nov 2015 11:39:44 +0100
> J├╝rgen Hestermann <juergen.hestermann at gmx.de> wrote:
> 
[...]
>> -----------------------------
>> with PathArray[High(PathArray)]^ do
>>     fillchar(StatisticOfFiles,sizeof(StatisticOfFiles),0);
>> -----------------------------
>>
>> instead of this:
>>
>> -----------------------------
>> fillchar(PathArray[High(PathArray)]^.StatisticOfFiles,sizeof(PathArray[High(PathArray)]^.StatisticOfFiles),0);
>> -----------------------------
[...]
> 
> LastPath:=PathArray[High(PathArray)];
> fillchar(LastPath^.StatisticOfFiles,sizeof(LastPath^.StatisticOfFiles),0);
> 

Will this form produce same code (as in memory footprint and machine code/so-called performance) ?

(but then, the last form, will have the variable declared explicitly, which probably means more complicated code around this region etc.?)

> Use Ctrl+Shift+C on LastPath to create the pointer variable.
> 
> Mattias
> 
el es






More information about the Lazarus mailing list