<div dir="ltr">On Tue, Jun 19, 2012 at 12:51 AM, Bernd <span dir="ltr"><<a href="mailto:prof7bit@googlemail.com" target="_blank">prof7bit@googlemail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

2012/6/18 ik <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>>:<br>
<div class="im">> Hi,<br>
><br>
> I'm playing a bit with the notion of execute a method dynamically on demand.<br>
> I'ved created the following PoC:<br>
> <a href="https://gist.github.com/2950789" target="_blank">https://gist.github.com/2950789</a><br>
<br>
</div>Souldn't this be<br>
<br>
Exec: procedure of object;<br>
<br>
instead of only procedure? Imho one pointer alone can not be enough,<br>
it should need the address of the procedure *and* the address of the<br>
object instance. Does your example work with multiple instances of the<br>
same class? If yes then I really don't understand why. But I also did<br>
not test it myself.<br></blockquote><div><br>Seems to work for me, updated the example: <a href="https://gist.github.com/2950789">https://gist.github.com/2950789</a><br><br>Or am O missing something ?<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br></div>