-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
--gc:arc
causes: Error: cannot create an implicit openArray copy to be passed to a sink parameter
#81
Comments
It's this issue, I think: nim-lang/Nim#15511 |
ya I noticed at the same time as you, I've reopened nim-lang/Nim#15511 |
@timotheecour It works with |
ok, I'm closing this, we should test regex in CI but IMO it should be nim's important_package's responsibility to test this (and other packages) with --gc:arc as it'd be best equipped to do so (it's not just --gc:arc but also orc and many other experimental or not options). so I'm closing this but we should followup with a way to do that. IMO nim-lang/RFCs#336 is the best approach for this (guarantees your flags (eg gc:arc) would apply to subprocesses, and without any modification to packages needed, all can be done in compiler logic + important_packages.nim handling |
re-opening, we should probably revert [1] #82 now that bug was fixed, because for ai in next:
result.next.add ai thanks to move/copyMem etc (even if that's not the case today, it should be in future) [1] or rather use: when (NimMajor, NimMinor, NimPatch) >= (1,5,1):
result.next.add next
else:
# refs https://github.com/nim-lang/Nim/issues/15511
for ai in next:
result.next.add ai |
with --gc:arc
The text was updated successfully, but these errors were encountered: