C++ method override

2024-06-03 Thread jmgomez
np, if you want to have better ergonomics you can copy my `processVirtual` and `super` implementation. It spins out a `super` function in the body of the `proc` that accepts the same params as the declared func. `processVirtual` has support for things like `constcpp` or `constref`. As a bonus it

C++ method override

2024-06-03 Thread mantielero
wow. Thank you. I would have never found that one.

C++ method override

2024-06-03 Thread jmgomez
`processExpose` is not the same as `ProcessExpose` either change the name of the Nim function or replace `$1` by `ProcessExpose`.

C++ method override

2024-06-02 Thread mantielero
I am revisiting this topic after I noticed the new [virtual pragma](https://nim-lang.github.io/Nim/manual_experimental.html#virtual-pragma). My objective is to get something like [this](https://github.com/gkv311/occt-hello/blob/master/occt-ais-hello/OcctAisHello.cpp#L93-L99): virtu

C++ method override

2023-03-20 Thread mantielero
I tried the following, like in the above mentioned thread: proc processExpose() {.exportcpp:"AIS_ViewController::ProcessExpose", codegenDecl: """ #ifdef ProcessExpose_SHOULD_BE_DEFINED $1 $2 $3 #else #define ProcessExpose_SHOULD_BE_DEFINED #endif

C++ method override

2023-03-20 Thread mantielero
Maybe related to this?

C++ method override

2023-03-20 Thread mantielero
In a C++ library that I am wrapping, I have to inherit from one of the wrapped classes. So I have this: type OcctAisHello* = object of AIS_ViewController myContext*:Handle[AISInteractiveContext] myView*:Handle[V3d_View] Run Then, I need to overrid