Following code produces a linker error.
d: error: undefined symbol: wxApp::OnInit()
```
extern(C++)
        {class wxApp {
                        public:
                        bool OnInit();
                        //virtual bool Oninit();
                }
        }

class MYAPP: wxApp {
                        alias OnInit=wxApp.OnInit;
                        bool OnInit(){return true;};
}

int main(){
        return 0;
}
```
It is rather clear what I want to achieve but virtual functions give me headache because dlang does not now the word virtual.

Reply via email to