On 19 Oct 2011, at 09:59, Marco van de Voort wrote:

In our previous episode, Sven Barth said:
This implementation will result in crashes if T is a reference- counted type.

Right... I tend to forget about these... what would the correct way to
copy an array of ref counted types? E.g. an "array of string"?

For-loops.

copy () ? :-)

copy() cannot be used to concatenate two arrays, because it is a function that returns a new array with contantes of (a potentially sub- array of) the original array.


Jonas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to