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

Sven Barth pascaldragon at googlemail.com
Sat Feb 1 19:54:38 CET 2014


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.

Regards,
Sven




More information about the fpc-pascal mailing list