PhobosWatch: manifest => enum

Janice Caron caron800 at googlemail.com
Sun Dec 30 08:04:46 PST 2007


On 12/30/07, Janice Caron <caron800 at googlemail.com> wrote:
> You can't switch on an anonymous enum. Anonymous enums have no type,
> and therefore it is not even /possible/ to generate an expression
> whose type is that of an anonymous enum!
>
> So switch/case survives unharmed.

OK, so everyone pointed out I got that wrong. Thanks, guys.

What I meant was: you can't switch on a heterogenous anonymous enum,
because heterogenous anonymous enums have no type.

Sorry for the confusion.



More information about the Digitalmars-d mailing list