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
types.

(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?

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to