[fpc-pascal] Dynamic arrays, yet another pitfall

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Feb 17 20:50:41 CET 2014


On 17 Feb 2014, at 20:41, Martin Frb wrote:

> "Dynamic arrays have no copy-on-write. But SetLength perform a copy-on-write on dynamic arrays."
> 
> I am not sure, if that makes to much sense either

It doesn't, because even if you don't change the length it makes a unique copy.


Jonas


More information about the fpc-pascal mailing list