On 07/11/15 11:01, Mattias Gaertner wrote: > On Sat, 7 Nov 2015 11:39:44 +0100 > Jürgen Hestermann <juergen.hesterm...@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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus