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

Use inheritance to implement wrapper struct types #222

Open
ChrisThrasher opened this issue Dec 29, 2023 · 2 comments
Open

Use inheritance to implement wrapper struct types #222

ChrisThrasher opened this issue Dec 29, 2023 · 2 comments
Labels

Comments

@ChrisThrasher
Copy link
Member

We can save code and remove the ugly This parameter if we instead inherit from sf:: types.

Here's an example: master...simplify_sf_buffer

@eXpl0it3r
Copy link
Member

Does this really work, i.e. is that type not part of the public C interface?

@ChrisThrasher
Copy link
Member Author

The C interface doesn’t know anything about how the type is defined. That’s why we’re allowed to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants