Recent

Author Topic: Is ExtendedRTTI now available in FPC 3.3.1?  (Read 1328 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1035
    • HowTos Considered Harmful?
Is ExtendedRTTI now available in FPC 3.3.1?
« on: January 19, 2024, 02:47:07 pm »
Is the ExtendedRTTI ready yet?

The following links suggest to me that it is now functional in FPC 3.3.1.

https://gitlab.com/freepascal.org/fpc/source/-/issues/38964

https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/423
Lazarus 3.0/FPC 3.2.2

Thaddy

  • Hero Member
  • *****
  • Posts: 15505
  • Censorship about opinions does not belong here.
Re: Is ExtendedRTTI now available in FPC 3.3.1?
« Reply #1 on: January 20, 2024, 04:28:57 pm »
well, the merge request was closed and not merged according to the second link and that link is recent. it may have been put on hold in preparation of a possible release, only after that more work would be done. that is how i read it.
also note there is no availability announcement yet.
« Last Edit: January 20, 2024, 04:34:24 pm by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11725
  • FPC developer.
Re: Is ExtendedRTTI now available in FPC 3.3.1?
« Reply #2 on: January 20, 2024, 04:37:54 pm »
It is merged, but now of course needs to be tested, debugged and expanded.

vfclists

  • Hero Member
  • *****
  • Posts: 1035
    • HowTos Considered Harmful?
Re: Is ExtendedRTTI now available in FPC 3.3.1?
« Reply #3 on: January 20, 2024, 05:36:07 pm »
It is merged, but now of course needs to be tested, debugged and expanded.


What kind of programs can be used to test and debug it?


This thread piqued my interest because apparently one of its use cases is to make using VCL controls with "scripting" languages easier - https://forum.lazarus.freepascal.org/index.php/topic,52849.msg392920.html#msg392920
Lazarus 3.0/FPC 3.2.2

PascalDragon

  • Hero Member
  • *****
  • Posts: 5644
  • Compiler Developer
Re: Is ExtendedRTTI now available in FPC 3.3.1?
« Reply #4 on: January 21, 2024, 12:13:15 pm »
well, the merge request was closed and not merged according to the second link and that link is recent. it may have been put on hold in preparation of a possible release, only after that more work would be done. that is how i read it.

You did read my comment there?

also note there is no availability announcement yet.

Because only the low level part is there. The support in the Rtti unit is missing as well as a suitable default setting for TObject.

What kind of programs can be used to test and debug it?

You can look at the tests/test/texrtti* tests to see how you can access it using the low level functionality in the TypInfo unit. But it might be better to wait for the corresponding implementation in the high level Rtti unit.

Nativer

  • Newbie
  • Posts: 2
Re: Is ExtendedRTTI now available in FPC 3.3.1?
« Reply #5 on: September 02, 2024, 06:25:03 pm »
Because only the low level part is there. The support in the Rtti unit is missing as well as a suitable default setting for TObject.
But even in the low-level part, access to the methods of records does not work. To make it work, do you need to edit the FPC core itself, and not just the units?

 

TinyPortal © 2005-2018