Hi there, which options do i have for allowing an inheritable object imported from cpp that has virtual methods to override those methods in nim and still having them dispatched correctly (by c++) ?
I've investigated adding some cdecl function pointers to the c++ objects, that are then invoked by the c++ virtual methods and i then can pass (cdecl) closures from nim, but it gets a bit tedious and error prone to write, not to mention that i need to have the class defined (and inherited) plus allocated in c++ (with `cnew`, mainly because the generated nim c++ code will call `newObj` which seems more like a malloc that will never construct a proper c++ object calling its constructors). I was trying to evaluate which kind of options do i have to make this nice to write (could templates or macros help here?), maybe someone can provide some insights. Thank you !
