Skip to content
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

followup #17001: improve coverage for tests/openarray/topenarray.nim #17006

Merged
merged 2 commits into from
Feb 13, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Feb 11, 2021

followup #17001

note that toOpenArray with var param doesn't seem to actually work (ie source data isn't mutated), so it's not clear that #17001 actually improved things (it turned an error into a silent non-mutation) /cc @xflywind

maybe to fix this we'd need slice (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) ?

EDIT: slice won't help, but i have another idea for how to fix this (in my views PR, I need to push latest commits, looks very promising)

@Araq Araq merged commit 21e60b9 into nim-lang:devel Feb 13, 2021
@timotheecour timotheecour deleted the pr_followup_17001_toOpenArray branch February 13, 2021 09:01
narimiran pushed a commit that referenced this pull request Feb 18, 2021
…17006)

* followup #17001: improve coverage for tests/openarray/topenarray.nim

(cherry picked from commit 21e60b9)
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
…ray.nim (nim-lang#17006)

* followup nim-lang#17001: improve coverage for tests/openarray/topenarray.nim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants