Closed mwgkgk closed 3 years ago
I was able to reproduce your problem 😢. There's nothing wrong with your code, furthermore I commented out a few lines and the problem seems to be the newSeq
call, everything else works.
It doesn't really make much sense, but I'll investigate.
Closing as dynamic support has been removed. At least until there's a way to implement it tidily in a cross-platform way.
Creating an example dyntest library, importing it and calling the dynplus function works.
Now, trying to create my own thing, that looks like this:
Fails upon calling
get-pos
withSIGSEGV: Illegal storage access. (Attempt to read from nil?)
This exact function works when defined in
lib/min_lang.nim
. Probably using something that's not implemented in mindyn? Or it can be my nonexistent Nim skills. Please point me in the right direction! :) Thank you