On Sat, 15 Feb 2014, Jürgen Hestermann wrote:
Am 2014-02-10 09:13, schrieb Michael Van Canneyt:
No. There is no COW, only ref. counting. SetLength just forces an unique
instance of the array if needed.
The documentation explicitly mentions that:
'Dynamic arrays are reference counted: assignm
Am 2014-02-10 09:13, schrieb Michael Van Canneyt:
>> No. There is no COW, only ref. counting. SetLength just forces an unique
>> instance of the array if needed.
> The documentation explicitly mentions that:
> 'Dynamic arrays are reference counted: assignment of one dynamic array-type
> variable t
Am 2014-02-09 19:29, schrieb Florian Klämpfl:
> Am 09.02.2014 18:41, schrieb Jürgen Hestermann:
>> So it seems there is a copy-on-write *but* only when using SetLength.
> No. There is no COW, only ref. counting. SetLength just forces an unique
> instance of the array if needed.
But this *is* Copy
Hello Jeff.
I will study your code.
Many thanks.
Fred
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal