Skip to content

cpp11::function does not protect its underlying SEXP #294

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

Closed
paleolimbot opened this issue Oct 17, 2022 · 1 comment · Fixed by #395
Closed

cpp11::function does not protect its underlying SEXP #294

paleolimbot opened this issue Oct 17, 2022 · 1 comment · Fixed by #395

Comments

@paleolimbot
Copy link
Contributor

Perhaps this was an intentional design decision; however, the behaviour was surprising to me since the other cpp11::<wrapper around an sexp> do this. Maybe it's too expensive to protect here, or maybe just add a note to the documentation? Happy to PR either of those in or close if this behaviour is intentional!

@paleolimbot
Copy link
Contributor Author

The PR where I ran into this is here: apache/arrow#14436

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 a pull request may close this issue.

1 participant