[fpc-devel] Twice stored record RTTI data

Maciej Izak hnb.code at gmail.com
Tue Mar 1 20:35:15 CET 2016


Hi,

when "TypeInfo" is used for managed record, then RTTI data for those record
is stored twice into executable file (useless). Should I report this as
bug? Maybe is some reason for that behavior? Example code to generate extra
RTTI bytes:

===

uses
  typinfo;

type
  TFoo = record
    foo: string;
  end;

var
  f: TFoo;
begin
  WriteLn(Integer(GetTypeData(TypeInfo(TFoo))));
  WriteLn(f.foo);
end.

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


More information about the fpc-devel mailing list