We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--gc:arc gives SIGSEGV in snippet below; it works without --gc:arc
--gc:arc
when true: var x = "abc" let y: ptr char = addr x[0] echo y[] y[] = 'A' echo x
a Traceback (most recent call last) /Users/timothee/git_clone/nim/timn/tests/nim/all/t0919.nim(118) t0919 SIGBUS: Illegal storage access. (Attempt to read from nil?)
a Abc
The text was updated successfully, but these errors were encountered:
I'm afraid this cannot be supported with the new string implementation. You have to call ensureNoLiteral(x) first, an API we don't have yet (?)
ensureNoLiteral(x)
The implementation for this is in nimPrepareStrMutationV2.
nimPrepareStrMutationV2
Sorry, something went wrong.
Closed as won't fix
I think closing is premature; there are things that can be done to at least improve things here
No branches or pull requests
--gc:arc gives SIGSEGV in snippet below; it works without
--gc:arc
Example
Current Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: