[fpc-pascal] Dynamically Execute method
Bernd
prof7bit at googlemail.com
Mon Jun 18 23:51:25 CEST 2012
2012/6/18 ik <idokan at gmail.com>:
> Hi,
>
> I'm playing a bit with the notion of execute a method dynamically on demand.
> I'ved created the following PoC:
> https://gist.github.com/2950789
Souldn't this be
Exec: procedure of object;
instead of only procedure? Imho one pointer alone can not be enough,
it should need the address of the procedure *and* the address of the
object instance. Does your example work with multiple instances of the
same class? If yes then I really don't understand why. But I also did
not test it myself.
More information about the fpc-pascal
mailing list