Wait, what? Even a stack allocated int32 is passed by reference? That is wrong, 
it hurts performance as well as breaking ABI.

When did this change, for what reason?

/be

On Sep 30, 2011, at 12:07 AM, Patrick Walton wrote:

> Now that every parameter is passed by reference, our ABI is no longer 
> compatible with C. Passing a struct by value is not the same as passing it by 
> immutable alias in C.
> 
> This is a severe problem, and my first instinct is to propose bringing back & 
> for it. We could bring the old meaning of & back just for native calls, but 
> that seems inconsistent.
> 
> Patrick
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev

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

Reply via email to