Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-15 Thread Michael Van Canneyt
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

Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-15 Thread Jürgen Hestermann
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

Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-15 Thread Jürgen Hestermann
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

Re: [fpc-pascal] fp libraries do not like cmem ?

2014-02-15 Thread Fred van Stappen
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