-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: attempt to access a nil address kind: rkInt (caused by result[^1]) #16226
Comments
This was referenced Dec 2, 2020
That's cool. I hope the fix will come out soon. |
1 task
I confirm that #15987 does fix this issue (and many others) |
Great, thank you! |
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
nim-lang#16226 VM now supports `addr(mystring[ind])` (index + index assignment) (nim-lang#15987) * fix nim-lang#15939, fix nim-lang#15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc * cleanups * cstring tests * add test for bug nim-lang#15464 * improve test coverage
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
nim-lang#16226 VM now supports `addr(mystring[ind])` (index + index assignment) (nim-lang#15987) * fix nim-lang#15939, fix nim-lang#15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc * cleanups * cstring tests * add test for bug nim-lang#15464 * improve test coverage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New bug in devel:
result[^1]
breaks inside macros butresult[len-1]
work.Example
Current Output
Expected Output
during compile:
Possible Solution
Worked on 1.4.0, breaks now.
This
result[result.len-1]
works though:The text was updated successfully, but these errors were encountered: