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

Add a test which mutates data in another library #3

Open
tyleo opened this issue May 19, 2016 · 1 comment
Open

Add a test which mutates data in another library #3

tyleo opened this issue May 19, 2016 · 1 comment

Comments

@tyleo
Copy link
Owner

tyleo commented May 19, 2016

I would have a working test for this. It is an important use-case.

@tyleo
Copy link
Owner Author

tyleo commented Jun 13, 2016

This is currently impossible. If a library exposes some mutable data, mut foo: usize for instance, it is impossible to modify foo outside of the library without a transmute. I would like to provide an additional data struct DataMut, which uses * pointers rather than * const pointers, eventually. Of course, a mutable reference to the struct would be required to access the data. There is nothing preventing this in the current implementation except that I haven't gotten around to it.

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

No branches or pull requests

1 participant