No, because I'm not supposed to get delegates in the first place. What I want is to have a pointer to a pointer to a function, so I can make a true virtual call.
On Thu, May 3, 2012 at 11:09 PM, Mehrdad <[email protected]> wrote: > On Thursday, 3 May 2012 at 18:47:11 UTC, Gor Gyolchanyan wrote: >> >> I need to get a pointer to a virtual method, which is in turn a >> function pointer, being set by virtual method binding. >> Can anyone, please, tell me how to get it? Taking the delegate of the >> method won't do, because I need it to behave exactly as a virtual >> method call, except I pass the "this" explicitly. >> I need this in an event handling mechanism I'm making. You derive from >> the Sink class, passing your static type to the constructor, which >> scans your virtual methods, that conform to specific requirements and >> extracts them into an array, which later uses to dispatch the incoming >> events. >> It will feel much like a run-time virtual template method. > > > Are you asking for the same thing I was asking for? > http://forum.dlang.org/thread/[email protected] -- Bye, Gor Gyolchanyan.
