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

Improve conventions for passing fixed-sized arrays to FFI functions #130

Closed
briansmith opened this issue Feb 29, 2016 · 0 comments
Closed

Comments

@briansmith
Copy link
Owner

After I filed rust-lang/rust#30382 the feedback was mostly negative so I made it the convention to use x: *const T/*[N]*/ and x: *mut T/*[N]*/ instead of x: &[T; N] and x: &mut [T; N] in FFI function declarations. However, now we have rust-lang/rust#31227 and it seems there's pretty widespread agreement that the latter forms are better, so we should just use them everywhere applicable.

See also #129.

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

No branches or pull requests

1 participant