> On Apr 1, 2017, at 2:39 PM, Sven Barth via fpc-pascal > <fpc-pascal@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. Thanks. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal