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

Structs lines and ByLineCopy cannot be usefully constructed in @safe code #10607

Closed
0xEAB opened this issue Jan 1, 2025 · 0 comments
Closed
Assignees

Comments

@0xEAB
Copy link
Member

0xEAB commented Jan 1, 2025

The structs lines and ByLineCopy of std.stdio aren’t safe to construct and/or destruct (at least in an actually useful way, i.e. calling the parameterized constructor of lines).

These maintenance inconveniences are quite easy to fix and would get us one step forward towards #10605.

@0xEAB 0xEAB self-assigned this Jan 1, 2025
0xEAB added a commit to schveiguy/phobos that referenced this issue Jan 1, 2025
… constructed in `@safe` code

Originally known as "Properly mark lines constructor".

Co-authored-by: Elias Batek <[email protected]>
0xEAB added a commit to schveiguy/phobos that referenced this issue Jan 1, 2025
… constructed in `@safe` code

Originally known as "Properly mark lines constructor".

Co-authored-by: Elias Batek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant