I have a hard time understanding how i can make it work (mainly because of my limited knowledge here), imagine that i make a macro that will emit automatically an inherited class and implement those virtual functions in c++ so i can then wrap them in a nim object and "set" them via function pointers.
Now i have another nim file that wants to use the type (i suppose for every nim file there will be a cpp file hence a translation unit), but how can the other nim file see both the nim object and the imported c++ emitted class in the other translation unit without re-emitting ? All i could think of is to have a macro output a c++ header file that is then included in multiple translation units... does it make sense ?
