[fpc-pascal] How can I get a typeinfo by address?

silvioprog silvioprog at gmail.com
Fri Jul 17 16:50:40 CEST 2015

On Fri, Jul 17, 2015 at 11:30 AM, Graeme Geldenhuys <
mailinglists at geldenhuys.co.uk> wrote:

> On 2015-07-17 15:13, silvioprog wrote:
> > I need to call a method dynamically by its name over string and pass some
> > parameters to it.
> You mean like what FPCUnit, DUnit or FPTest unit testing frameworks do?
> If so, just take a look at any of them to see how they call the test
> methods.
> Regards,
>   - Graeme -

I know how FPCUnit does, but AFAIK it don't pass parameters for the
triggered methods. =/

About DUnit, instead of take a loot at its code, I just use the
System.Rtti.Invoke() feature.

Silvio Cl├ęcio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150717/f78ba432/attachment.html>

More information about the fpc-pascal mailing list