For those interested in the C++ backend, there is an experimental version of the virtual pragma.
Here are the docs: https://nim-lang.github.io/Nim/manual_experimental.html#virtual-pragma
Hi @jmgomez, thanks for your work! I've just been using it for my own project and it's a huge time/life-saver. I was wondering though what you thought about allowing var for self/this instead of/in addition to ptr?
proc createScene01*(self: ptr[LogicGameState]) {.virtual.} = # maybe allow `var LogicGameState` here?
let origin = Vector3.init(-5, 0, 0)
let geMgr = self[].mLogicSystem[].getGameEntityManager()
self[].mCubeMoDef = cpp_new MovableObjectDefinition.init()
Hey @rb3, glad that you found virtual useful!
I dont really have a saying on what gets accepted though, but I like the idea. Please submit an issue, if it gets approved I can work on it.