[fpc-pascal] Dynamic arrays, yet another pitfall
Marco van de Voort
marcov at stack.nl
Mon Feb 17 20:34:09 CET 2014
In our previous episode, Martin Frb said:
> Just because there is a function, that includes copying (when modifying
> the array), does not mean there is copy on write.
So basically, if for a given size x, setlength(x,1) always reallocates, then
it is COW, otherwise not :-)
(and even if it does, one could still argue it is an implementation detail)
More information about the fpc-pascal
mailing list