> It wasn't the cast that felt funny to me, it was the role of 0_u32 in the > expression. Its only purpose is to give access to the date impl over u32 > which is ok, but I'm used to having something like class methods for that.
Right. As I said, just use constructor functions with different names. We may end up supporting this directly in our class system at some point, but that seems an easy enough workaround. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
