[fpc-devel] Feature announcement: Record management operators

Maciej Izak hnb.code at gmail.com
Sun Mar 13 12:45:15 CET 2016


2016-03-11 11:25 GMT+01:00 Sven Barth <pascaldragon at googlemail.com>:

> What do you mean with AddRef operator?
>
> AddRef is a special case, is used for records passed to procedures by
value (to increase reference count for strings, interfaces, dyn. arrays).

I have done a little patch (r33229), where copy and addref empty
slots/placeholders in VMT are omitted. I need to think about it (AddRef
operator existence is uncertain).

For merge with trunk purpose is recommended to use smart_pointers branch r33229
(more optimal "Init VMT" without empty slots for management operators:
AddRef and Copy).

> What do you mean with special operator?
> (maybe this should be discussed in a new thread however)
>
I'd like to omit discussion on this topic for a while. I need to finish
research first.

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160313/2700e7be/attachment.html>


More information about the fpc-devel mailing list