namespace; include rt; // enum members are reached through the enum's name as well as plainly enum color { RED, GREEN = 5, BLUE }; fn main() { int c = color.BLUE; rt.put_n(color.RED); rt.put_c(' '); rt.put_n(GREEN); rt.put_c(' '); rt.put_n(c); rt.put_c(' '); switch (c) { case color.BLUE: rt.put_s("blue"); break; default: rt.put_s("other"); } return 0; }