You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Hi, actually when we use a function like:
rust_function("fn add(a:f64, b:f64) -> f64 { a + b }")
The values
a
andb
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!
The text was updated successfully, but these errors were encountered: