3 ms·
It is undefined behavior in Nim due to compiling to C. https://news.ycombinator.com/item?id=9050999 https://news.ycombinator.com/item?id=9050999
by pcwalton 11y ago
It is undefined behavior in Nim due to compiling to C. https://news.ycombinator.com/item?id=9050999 https://news.ycombinator.com/item?id=9050999
- Pharohbot 11y agoAs stated before in this thread, there _will_ be nil Checks in the future which will result in NilErrors or you can just annotate it with `not nil` right now and it will never be nil. You can also use -fsanitize flags with the clang backend to trap the null dereferences.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]