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

fix std.mem.addNullByte and implement sentinel slicing #3940

Merged
merged 5 commits into from Dec 21, 2019

Conversation

andrewrk
Copy link
Member

@andrewrk andrewrk commented Dec 18, 2019

Closes #3770

checklist:

 * add runtime safety for slicing pointers, arrays, and slices.
 * slicing without a sentinel value results in non-sentineled slice
 * improved `std.debug.panic` handling of panic-during-panic
@andrewrk andrewrk merged commit bc95c63 into master Dec 21, 2019
@andrewrk andrewrk deleted the sentinel-slicing branch December 21, 2019 19:11
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.

slicing syntax which can obtain sentinel terminated types from non-sentinel-terminated types
1 participant