Pointer to C++ member possible?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Mar 9 13:10:45 PDT 2008


"Raynor" <memphis007fr at yahoo.fr> wrote in message 
news:fr1ach$1qmd$1 at digitalmars.com...
>I want to use the QT4 library for the GUI and D the D for the core.
> I think its more simple to make the controllers in C++.
> I manage to call D methods from C++ and vice versa with C++ 
> interoperability feature from D 2.0.
> But i need a signal system so the core can emit signals to the 
> controllers.
> Everything is objet so i need pointer to C++ member for the signals.
>
> Is there any way to do that?

There is no standardized ABI for C++ pointers-to-members, making it terribly 
difficult to interface with them.  You basically have to find out how the 
particular C++ compiler you're using implements pointers-to-members and 
implement it, non-portably, using D. 




More information about the Digitalmars-d-learn mailing list