[fpc-pascal] Array clearing

Ryan Joseph ryan at thealchemistguild.com
Sat Apr 1 09:50:22 CEST 2017

> On Apr 1, 2017, at 2:39 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> It totally depends on the type. In case of primitive types like integers there is indeed only the performance difference (though if you know that the element size is four FillDWord could be even faster, depending on the implementation in the RTL).
> If you have managed types however or class instances the result of the FillChar (or equivalent) would be memory leaks.

Yeah, I was concerned with just compiler types or weakly retained classes where I’m just keeping the reference.


	Ryan Joseph

More information about the fpc-pascal mailing list