Have consts be easily available as more than one type
Opened this issue · 0 comments
Lokathor commented
If we do something like the following we can maybe make it easy to access a const as more than one type without worrying that casting has accidentally changed the value.
pub const CS_VREDRAW: u32 = 0x1;
pub mod CS_VREDRAW {
pub const i32: i32 = super::CS_VREDRAW as i32;
}
fn main (){
println!("{}", CS_VREDRAW);
println!("{}", CS_VREDRAW::i32);
}