Am 09.05.2016 18:19 schrieb "Mazo Winst" <mazofei...@gmail.com>:
>
>
>
> Em segunda-feira, 9 de maio de 2016, Sven Barth <
pascaldra...@googlemail.com> escreveu:
> > Am 09.05.2016 17:23 schrieb "Mazo Winst" <mazofei...@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.

The name is not the problem. The signature is. As long as you know the
signature at compile time you won't have any trouble currently. Everything
else you'll need to do yourself currently.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to