Re: [fpc-devel] Management operators : Copy and Clone confusion...

2017-01-23 Thread Thorsten Engler
It's been a few years since I looked at the relevant code in the FPC compiler and RTL, so my knowledge may be woefully out of date and/or degraded by time, but IIRC: - Copy was called with a source and target pointer and is responsible for copying everything that's needed from the source to the

Re: [fpc-devel] Management operators : Copy and Clone confusion...

2017-01-23 Thread Michael Van Canneyt
On Sat, 21 Jan 2017, Florian Klämpfl wrote: Am 19.01.2017 um 10:44 schrieb Michael Van Canneyt: At the risk of writing nonsense: I would think that a method name should give a clue as to what it actually does. In that sense AddRef/Clone seems better to me ? Even if it is used by types