[fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
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 It works, but for some strange reason, I find myself feeling that I'm missing something, or it should be done differently. Does this code written prope

Re: [fpc-pascal] Dynamically Execute method

2012-06-18 Thread Bernd
2012/6/18 ik : > 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 ne

Re: [fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
On Tue, Jun 19, 2012 at 12:51 AM, Bernd wrote: > 2012/6/18 ik : > > 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 o