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

vlib: Use unsafe for pointer indexing #5836

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Jul 15, 2020

I'm working on making an error for using pointer indexing outside an unsafe block. I've done most of the work to update vlib for this, but I think it's worth submitting my changes so far in case I don't finish it for a while. (To avoid fixing conflicts on rebase).

Whilst doing this, I also put some nearby unsafe statements into an unsafe block too. E.g. calling C voidptr functions or tos etc.

Edit: This follows on from #5581 and others.

@medvednikov medvednikov merged commit f5e6a83 into vlang:master Jul 15, 2020
@ntrel ntrel deleted the unsafe-index branch July 21, 2020 15:33
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.

None yet

2 participants