[fpc-pascal] Does SetLength clear its elements to zeros?

Dennis dec12 at avidsoft.com.hk
Fri Dec 11 09:21:07 CET 2015


I just tested, SetLength a string  does not zero its elements (the chars).

However, SetLength a dynamic array seems to zero its elements.

I cannot find the official behaviour by googling.

Anyone has the official saying?

Dennis



More information about the fpc-pascal mailing list