How to convert a member function pointer to a normal function pointer
Russell Lewis
webmaster at villagersonline.com
Mon Apr 30 10:29:16 PDT 2007
smithfox wrote:
> How to convert a member function pointer to a normal function pointer?
> Just like Object Pascal Language's Classes.MakeObjectInstance(xxx);
>
> I think it is a classic problem when we try to write object-oriented codes based on an unalterable C framework(such as window gui sdk);
I think that you need to create a wrapper function, just like in C++.
D's only advantage here is that you can use a function literal, if that
happens to make your code easier to read.
More information about the Digitalmars-d
mailing list