[fpc-devel] Improved RTTI compromise

Maciej Izak hnb.code at gmail.com
Wed Dec 7 11:39:08 CET 2016


2016-12-07 8:49 GMT+01:00 Michael Van Canneyt <michael at freepascal.org>:
>
> I am not sure this is possible. The structures exposed in the typinfo
> interfacee mimic the info the compiler generates in the binary.
>
> If the compiler generates different info than Delphi, you cannot retrieve
> it in a delphi-compatible way.
>
> Trying to generate the exact same information as Delphi is IMHO not the
> right path.
>
> What is needed is an API that gives you the info contained in the internal
> structures.


I think it is possible but solution proposed by Sven is good enough :). As
was mentioned in my previous message to Sven:

100% agree I don't have problem with a little Delphi incompatible RTTI, the
bigger picture is more important than small details, but quote from Jonas
Maebe ([fpc-devel] Attributes
 thread): "some people wanted it to be Delphi compatible, other people did
not mind if it was not. Both categories of people were in the core team."

Delphi incompatible info was mentioned as serious problem for merging RTTI
branch into trunk.


> No-one is ignoring RTII. I have contacted Joost on multiple occasions to
> merge his work into trunk. I get a lot of questions about it. But I cannot
> do the work myself. If I could, I would. I am waiting for the attributes
> since a long time.


Glad to hear that. RTTI together with closures is "must to have" feature.
Extended RTTI + closures is the last missing element for many users to
escape from Delphi.

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


More information about the fpc-devel mailing list