[fpc-devel] Management operators : Copy and Clone confusion...
Michael Van Canneyt
michael at freepascal.org
Mon Jan 23 10:30:13 CET 2017
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 not being ref. counted? Ref. counted types are only a sub-set of managed
>> (unless Copy does something else besides increasing the ref count ?)
>> AddRef is clear to anyone, I think.
> For non-ref. counted types?
I didn't know it is used for non-ref. counted types as well.
For those types, there is no difference between copy/clone then?
More information about the fpc-devel