Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Apr 23, 2022

Now tstreams is actually tested with ARC.

I also fixed readDataStr branch that is executed when the readDataStrImpl is nil so that it works with ARC (it's covered by the tstreams test).

Also changed issue references in the test to the preferred convention.

Fixes #19716

@ghost ghost linked an issue Apr 23, 2022 that may be closed by this pull request
result = s.readDataStrImpl(s, buffer, slice)
else:
# fallback
when declared(prepareMutation):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't add a nimvm check here because this code branch isn't supported by the VM anyway

@Araq Araq merged commit 2f32b45 into nim-lang:devel Apr 25, 2022
narimiran pushed a commit that referenced this pull request Apr 25, 2022
#19739)

* Fix compile-time StringStream with ARC

* make readDataStr work with ARC, improve test

(cherry picked from commit 2f32b45)
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.

StringStream in static context (arc) now broken after recent write fix
1 participant