A safer switch? + abbreviation of member names in enum switches

language_fan foo at bar.com.invalid
Mon Oct 12 04:38:04 PDT 2009


Mon, 12 Oct 2009 04:55:07 -0400, Justin Johansson thusly wrote:

> Would it be possible for the compiler to infer the declared enum type,
> in this case Color, making for abbreviation of the enum member names in
> the case clauses [snip]?

Yes. Java does this.



More information about the Digitalmars-d mailing list