[fpc-devel] Twice stored record RTTI data

Sven Barth pascaldragon at googlemail.com
Wed Mar 2 00:16:10 CET 2016


Am 01.03.2016 23:44 schrieb "Maciej Izak" <hnb.code at gmail.com>:
>
> 2016-03-01 23:20 GMT+01:00 Michael Van Canneyt <michael at freepascal.org>:
>>
>>
>> Please report this in the bugtracker.
>
>
> Done, patch attached
>
> http://bugs.freepascal.org/view.php?id=29767

This is by design and your patch would break existing code anyway.

The init RTTI contains merely those fields that need initialization (namely
interfaces, strings and dynamic arrays) and which is used for the
fpc_initialize(), fpc_finalize() and fpc_assign() helpers while the full
RTTI contains all typed, even those that don't need initialization. Please
note that not all types need a separate init RTTI (e.g. classes), but
records do (this is determined by needs_separate_init_rtti that each def
overrides).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160302/5a0daa78/attachment.html>


More information about the fpc-devel mailing list