On 10/05/2012 10:56 AM, Gareth Smith wrote:

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?

Possible. Feels like overkill just to support the one function, could just as easily have the compiler emit an error for the one case in question.

-Graydon

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

Reply via email to