Private enum members

Kagamin spam at here.lot
Mon Oct 26 05:52:24 PDT 2009


d-noob Wrote:

> So let's fix it:
> 
> enum C {
>   private:
>   UNINITIALIZED = -1;
>   public:
>   RED, GREEN, BLUE;
> }

See enums with virtual methods
http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html



More information about the Digitalmars-d mailing list