On 10/05/12 15:57, Graydon Hoare wrote:
I'm a little nervous about what you're proposing here. I think enums can probably be done with a sys::enum_value<T> intrinsic that fails to compile on non-enums. Or something involving the reflection interface I'm currently building. I don't think this part is a blocker.
Just a thought - how about `sys::enum_value<T:c_enum>(x: T) -> uint` where c_enum is some new kind given only to c-style enums?
Gareth _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
