On 9/29/11 4:51 PM, Graydon Hoare wrote:
I think this is probably less of a worry than you're seeing; the "new"
rust abi is "probably by reference, but by value in some cases". It only
has the freedom to choose when it's unobservable to safe code anyways
(when it's an immutable value). So the values are "effectively" the same
as passed-by-value as far as callee is concerned. That's why marijn
could make the change without breaking everything, after all :)

It doesn't have the freedom to choose; it always goes by reference, due to type passing. This is the problem. We can only fix this by monomorphizing.

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to