[fpc-pascal] Array clearing

Ryan Joseph ryan at thealchemistguild.com
Tue Apr 4 15:40:13 CEST 2017


> On Apr 4, 2017, at 7:17 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> If you want continuous memory areas you need to use static arrays or develop your own dynamic data structure that uses array properties.
> 
> 

I’m glad I asked because of arrays of pointers is bad news for performance. Does SetLength on a single level dynamic array not even allocate a continuous block of memory? I could use GetMem and array[0..0] but it seems like dynamic arrays should do basically that anyways if they’re not nested.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list