[fpc-devel] Management operators AddRef and Copy vs Copy
Maciej Izak
hnb.code at gmail.com
Sun Apr 17 09:56:19 CEST 2016
2016-04-13 21:45 GMT+02:00 Maciej Izak <hnb.code at gmail.com>:
>
> 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.
>
I'd like to nominate to the list "AutoCopy". Anyone? Any additional
suggestions?
--
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160417/22a4f1ca/attachment.html>
More information about the fpc-devel
mailing list