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 i32 and f64 as copied values from R #345

Open
latot opened this issue Mar 12, 2024 · 0 comments
Open

Document i32 and f64 as copied values from R #345

latot opened this issue Mar 12, 2024 · 0 comments

Comments

@latot
Copy link

latot commented Mar 12, 2024

Hi, actually when we use a function like:

rust_function("fn add(a:f64, b:f64) -> f64 { a + b }")

The values a and b are copied, but if we interpret it from Rust, we would think the library moved the values from R to Rust, so they should not be available now.

An option would be document this behavior, other one, which I think is a lot more clear is use &i32 and &f64.

Thx!

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