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

Maciej Izak hnb.code at gmail.com
Wed Apr 13 21:45:01 CEST 2016


2016-04-12 21:41 GMT+02:00 Florian Klämpfl <florian at freepascal.org>:

> Yes. Maybe we have to do some more research what appropriate names are,
> the names in system.pp are
> historic.


Maybe is good idea to keep "Copy" operator name instead of proposed Clone.
Copy name is compatible with other starndard RTL functions like Copy and
CopyArray. I think is more intuitive for Pascal users. Clone is more "Java
story".

Instead of AddRef my proposition is: PostCopy, AfterCopy, LateCopy,
LazyCopy (it is not at all "lazy copy" by definition, but I like it). All
copied data already exist but programmer still can do some actions
post-factum (for example proper ref. counting). IMO best choice is LateCopy.
-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160413/4bc40d0f/attachment.html>


More information about the fpc-devel mailing list