On 10/3/12 7:22 PM, Ziad Hatahet wrote:
So will we always have to dereference a ref variable using the asterisk
symbol? In effect this is passing a pointer (like C), correct?

Yes.

What
about if we want to call a method on a ref variable, will it be a.foo(),
or (*a).foo()?

Either one works.

Patrick

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

Reply via email to