[fpc-devel] Management operators AddRef and Copy vs Copy

Florian Klaempfl florian at freepascal.org
Sun May 1 12:14:54 CEST 2016


Am 25.04.2016 um 16:47 schrieb Maciej Izak:
> Finally I've decided to use Clone and Copy (as proposed by Florian).

Glad to hear :) Another thing: I wonder if those really need to be
operators? In C++, "clone" is also only a special constructor.

> Should I adjust RTL inner functions to this? I mean renaming FPC_COPY to
> FPC_CLONE and FPC_ADDREF to FPC_COPY.

I wouldn't do this, it has been this way for years. Users who dig in
this code, understand it, the others are not effected.




More information about the fpc-devel mailing list