RTTI libraries for FPC lazarus / 62-General ---------------------------------------------------------------------- Int · 2016-04-09 10:59 Hello! I'm looking for implementation of RTTI features in FPC. I've figured out how to work with published properties via TypInfo unit. But I still cannot find a way to dynamically invoke methods with unknown signature at compile time. As far as I understand there is ObjAuto.ObjectInvoke http://docwiki.em barcadero.com/Libraries/Seattle/en/System.ObjAuto.ObjectInvoke since Delphi 7 (or even earlier) but there's no ObjAuto in FPC (right?). Maybe there is a library that can do most of Delphi's RTTI or at least ObjAuto. I was thinking about writing my own implementation but I don't think one's quality would be good enough. Furthermore I've seen a few topics related to RTTI support in FPC, such as http://forum.lazarus.freepascal.org/index.php/topic,27538.0.html, where @darupe said that he worked on his library but I didn't found much information about it. There are a few links that I found during the searching: http://hallvards.blogspot.com/2006/09/extended-class-rtti.html - "Extended class RTTI" http://stackoverflow.com/questions/36426460/delphi-which-methods-are- supposed-to-be-in-rtti related question on Stackoverflow in russian: http://keyfighter.blogspot.ru/2014/09/free-pascal.html - "Tricks with objects" http://forum.lazarus.freepascal.org/index.php?topic=30678.0%29 http://stackoverflow.com/questions/36188402/freepascal-rtti-is-there- a-way-to-invoke-method I'd be glad for any other articles! P.s. How soon is RTTI support going to be implement in FPC? I'm interested in both RTTI (like Delphi 2010+) and more low libraries like ObjAuto etc. ---------------------------------------------------------------------- hnb · 2016-04-09 12:56 There is branch for attributes ( http://svn.freepascal.org/cgi- bin/viewvc.cgi/branches/joost/?sortby=date ) but a little outdated  ( last commit - Sun Oct 20 20:49:45 2013 ) and incomplete (lack of finished RTTI module). Extended RTTI (+RTTI and ObjAuto module) is on my TODO list, but I don't have any timeline for this. ---------------------------------------------------------------------- Int · 2016-04-09 15:01 I'm sorry I'm confused a bit. What exactly does this branch? Does it have kind of readme or list of features? ---------------------------------------------------------------------- hnb · 2016-04-09 19:09 Initial implementation of extended RTTI (like in Delphi > 2009). To get more info you need to track revision logs for the branch... ---------------------------------------------------------------------- Isaque Pinheiro · 2018-08-31 17:01 Quote from: hnb on April 09, 2016, 02:56:29 pmThere is branch for attributes ( http://svn.freepascal.org/cgi- bin/viewvc.cgi/branches/joost/?sortby=date ) but a little outdated  ( last commit - Sun Oct 20 20:49:45 2013 ) and incomplete (lack of finished RTTI module). Extended RTTI (+RTTI and ObjAuto module) is on my TODO list, but I don't have any timeline for this. I am the author of Project ORMBr for Delphi (OpenSource) www.ormbr.com.br I need this resource to port to Lazarus. ---------------------------------------------------------------------- Isaque Pinheiro · 2018-08-31 18:12 Quote from: hnb on April 09, 2016, 09:09:20 pmInitial implementation of extended RTTI (like in Delphi > 2009). To get more info you need to track revision logs for the branch... Would not there be, the possibility of this feature being in a package? ---------------------------------------------------------------------- PascalDragon · 2018-08-31 19:45 No, because for any RTTI unit to work the compiler must generate the necessary information. Currently (for trunk as well as the upcoming 3.2.0) this is only the case for interface methods. ---------------------------------------------------------------------- Isaque Pinheiro · 2018-08-31 20:09 lamentable...