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

Document lifetimes & ownership rules #17

Open
encukou opened this issue Oct 10, 2023 · 0 comments
Open

Document lifetimes & ownership rules #17

encukou opened this issue Oct 10, 2023 · 0 comments
Labels
guideline To be included in guidelines PEP

Comments

@encukou
Copy link

encukou commented Oct 10, 2023

This is already in the devguide.

For new API, the ownership rules and lifetimes of all applicable struct fields, arguments and return values need to be well defined.

Details for the common cases are in #16 (references) and #8 (blueprint structs).

A common case to watch out for is char * and other arrays; especially ones referenced from structs -- AFAIK, in the current API we still sometimes assume they are statically allocated and constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guideline To be included in guidelines PEP
Projects
None yet
Development

No branches or pull requests

1 participant