Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-05

Announcement: RTTI extension

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Ishenin

Hello, FPC developers' list

Please note the following changes regards RTTI for some types:

1. RTTI for Pointers and Class References is now generated by compiler with an ability to get a pointed type.

2. RTTI for AnsiStrings now allows to get an initial Code Page an AnsiString type (it may be changes at any moment by SetCodePage()).

3. RTTI for arrays has been significantly changed and now is public. Previosly RTTI for arrays was used only internally by RTL low level functions.

4. RTTI for Procedural Variables now contains information about calling convention, arguments and result type.

5. RTTI for Record managed fields has been adjusted to match internal compiler reprenstation.

There were few motivations for these changes: user requests, RTL needs (AnsiString CodePage) and Delphi compatibility (where that was possible and reasonable).

You can find an example of how to deal with this new RTTI and some more information by the following link:
http://wiki.lazarus.freepascal.org/User_Changes_Trunk#RTTI_changes

Best regards,
Paul Ishenin.

Reply by email