On 2/7/12 6:51 PM, Niko Matsakis wrote:
For example, in C++ you cannot have a const field of value type unless all fields within that type are const.
Sorry, this is not what I meant to write. The rule, in fact, is that the values with const value fields are not assignable (which is basically what I proposed, except that in C++ things are mutable by default and they are not in Rust).
Hat tip to pcwalton for pointing out this rule in C++ a while back.. Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
