19 Jun 2012 00:49
Re: Dynamically Execute method
On Tue, Jun 19, 2012 at 12:51 AM, Bernd <prof7bit <at> googlemail.com> wrote:
Seems to work for me, updated the example: https://gist.github.com/2950789
Or am O missing something ?
2012/6/18 ik <idokan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Hi,Souldn't this be
>
> 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
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.
Seems to work for me, updated the example: https://gist.github.com/2950789
Or am O missing something ?
_______________________________________________
fpc-pascal maillist - fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b@public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________ fpc-pascal maillist - fpc-pascal@... http://lists.freepascal.org/mailman/listinfo/fpc-pascal
RSS Feed