[fpc-pascal] Does RTTI offer any method parameter information?

Howard Page-Clark hdpc at talktalk.net
Sat Feb 1 21:44:38 CET 2014


On 01/02/2014 18:54, Sven Barth wrote:
> On 01.02.2014 19:10, Howard Page-Clark wrote:
>> In a situation where
>>
>>    PPropInfo^.PropType^.Kind=tkMethod
>>
>> does RTTI enable you to determine the number and/or types of the
>> parameters that method uses (if any)?
>
> Yes, please take a look at the tkMethod part of the case inside
> TTypeData in $fpcdir/rtl/objpas/typinfo.pp
> There are AFAIK no functions yet that simplify the access though. Maybe
> someone else has already written a wrapper for it.

I should have known to look at the source. Thanks Sven for pointing me 
to the correct place.

H




More information about the fpc-pascal mailing list