[fpc-pascal] Invoking methods through rtti

Mazo Winst mazofeifer at gmail.com
Mon May 9 18:19:33 CEST 2016


Em segunda-feira, 9 de maio de 2016, Sven Barth <pascaldragon at googlemail.com>
escreveu:
> Am 09.05.2016 17:23 schrieb "Mazo Winst" <mazofeifer at gmail.com>:
>>
>> Is there any way to invoke a method passing parameters through rtti?
>
> As long as you know the signature of the method you can cast the pointer
to the method to an approbiate method variable and call that. For dynamic
calls you'll need to wait for Invoke() support which is on the ToDo list,
but there's no ETA yet.
>

In my use case,the name of the method are determined at runtime.

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160509/3d860288/attachment.html>


More information about the fpc-pascal mailing list