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

(stdlib) Wrap ASCIIString in std::shared_ptr<T> #453

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

perlun
Copy link
Collaborator

@perlun perlun commented Apr 9, 2024

  • ASCIIString and String are now wrapped in a std::shared_ptr<T> container, which means that we can fix a bunch of the skipped tests mentioned in (stdlib) Implement initial native ASCIIString class #451.

  • This makes it possible to assign an ASCIIString to an (abstract) String. Impossible with non-pointers, because it involves the C++ copy operator, so this is a benefit of the above.

@perlun perlun added stdlib Things related to the Perlang API/stdlib experimental compilation Issues which are relevant when using experimental compilation labels Apr 9, 2024
@perlun perlun changed the title (stdlib) ASCIIString improvements (stdlib) Wrap ASCIIString in std::shared_ptr<T> Apr 9, 2024
* `ASCIIString` and `String` are now wrapped in a `std::shared_ptr<T>`
  container, which means that we can fix a bunch of the skipped tests
  mentioned in #451.

* This makes it possible to assign an `ASCIIString` to an (abstract)
  `String`. Impossible with non-pointers, because it involves the C++
  copy operator, so this is a benefit of the above.
@perlun perlun force-pushed the fix/AsciiString-to-String-assignment branch from f1ff5a1 to a4be9d0 Compare April 9, 2024 20:07
@perlun perlun added this to the 0.5.0 milestone Apr 9, 2024
@perlun perlun merged commit ce897e4 into master Apr 9, 2024
14 checks passed
@perlun perlun deleted the fix/AsciiString-to-String-assignment branch April 9, 2024 20:29
@perlun perlun mentioned this pull request Apr 11, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental compilation Issues which are relevant when using experimental compilation stdlib Things related to the Perlang API/stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant