[https://github.com/nim-lang/Nim/issues/4048](https://github.com/nim-lang/Nim/issues/4048)
How was I able to find it? Well there is a "C++ codegen" tag, you can filter
the issues by that.
Well that answers that. Thanks @Araq, and thanks for describing how you found
the posted issue. This saves me more time with a brick wall.
Well I played a bit with your example, and I have to say, I can't obviously see
what is wrong. Since the items thing works and the error comes from the
compiler of the generated code, I recommend you to actually look at the
different versions of the generated c++ code between items and mitems an
Lando: I totally agree. Debugging is a thing that Nim doesn't support that well
yet. But it is not without hope. I managed to get the GDB support a little bit
better, by injecting a python script into the executable that gdb automatically
detects. That python script is by far not complete, but i
I'm practicing wrapping std::vector before attempting trickier things. I have
the items iterator working, but the compiler complains I need an initializer
when using mitems. All I can figure is that I'm missing wrapping some
std::vector function related to initialization. I'd be grateful if some
Great talk to get people interested. Reminded me of why I got into Nim:
isomorphic programming without much pain and the fact that Nim manages to cover
so many of the basic language features that often seem mutually exclusive. The
question from the audience about easy debugging shows how importa
There are lots of solutions for this problem, here is one:
* Keep the `main.nim` files idea, these should only consist of `import`
statements and perhaps a `when isMainModule` section.
* In your game, do not `import subdir/main` but `include subdir/main`.
My issues is about how I should arrange the files and folders of my source
code, utilizing Nim's module system. I am just starting with Nim and am coming
from C++ where I used to duct tape everything together using include statements.
Let's say that my project consists of three main components: