Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible get rtti info for types declarated in the implementation part of a different unit

I have several classes of a thirdparty component (which I cannot modify), Now I need to access to some classes declarated in the implementation part of that unit, The question : Is possible get rtti info for types declarated in the implementation part of a external unit? if not is possible exist another way to access such types? I know about the scope of the units and that the implementation declarations are private and only available within a specific Unit. but maybe exist some hack.

like image 265
Salvador Avatar asked Dec 16 '11 18:12

Salvador


1 Answers

Unfortunately, no. The RTTI generated for implementation-only classes is minimal, and probably not enough for you to perform RTTI Surgery with.

Best thing to do here is modify the source (please tell me you aren't using a library with no source available!) or if you really truly can't do that, then talk to the author.

like image 146
Mason Wheeler Avatar answered Oct 25 '22 20:10

Mason Wheeler