Re: [fpc-pascal] Invoking methods through rtti

2016-05-11 Thread Sven Barth
Am 11.05.2016 10:22 schrieb "Michael Schnell" : > > On 05/09/2016 05:36 PM, Sven Barth wrote: >> >> >> 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 wh

Re: [fpc-pascal] Invoking methods through rtti

2016-05-11 Thread Michael Schnell
On 05/09/2016 05:36 PM, Sven Barth wrote: 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. Will

Re: [fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Sven Barth
Am 09.05.2016 18:19 schrieb "Mazo Winst" : > > > > Em segunda-feira, 9 de maio de 2016, Sven Barth < pascaldra...@googlemail.com> escreveu: > > Am 09.05.2016 17:23 schrieb "Mazo Winst" : > >> > >> Is there any way to invoke a method passing parameters through rtti? > > > > As long as you know the s

Re: [fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Mazo Winst
Em segunda-feira, 9 de maio de 2016, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> escreveu: > On 2016-05-09 16:22, Mazo Winst wrote: >> Is there any way to invoke a method passing parameters through rtti? > > Yes, it should be possible. Take a look at the FPCUnit (unit testing > framework) in

Re: [fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Mazo Winst
Em segunda-feira, 9 de maio de 2016, Sven Barth escreveu: > Am 09.05.2016 17:23 schrieb "Mazo Winst" : >> >> 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 varia

Re: [fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Sven Barth
Am 09.05.2016 17:23 schrieb "Mazo Winst" : > > 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 Invok

Re: [fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Graeme Geldenhuys
On 2016-05-09 16:22, Mazo Winst wrote: > Is there any way to invoke a method passing parameters through rtti? Yes, it should be possible. Take a look at the FPCUnit (unit testing framework) included with FPC. The testing framework invokes methods and passes parameters around. Regards, Graeme _

[fpc-pascal] Invoking methods through rtti

2016-05-09 Thread Mazo Winst
Is there any way to invoke a method passing parameters through rtti? Best regards ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal