On 10/23/12 5:30 AM, Henri Sivonen wrote:
Is there a way to scope constants under the namespace of a struct?


Not at the moment. You can work around it by making the constants pure inline functions.

I don't think it would be hard to add this now that we merged the type and module namespaces (this is only on git master though, not on 0.4).

Patrick

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

Reply via email to