Private enum members + Descent
    Yigal Chripun 
    yigal100 at gmail.com
       
    Sat Oct 24 00:25:12 PDT 2009
    
    
  
On 24/10/2009 01:16, Justin Johansson wrote:
> Sorry; subject line mod'ed  just so Ary doesn't miss it.
>
>> enum Color { private UNINITIALIZED = -1, RED, GREEN, BLUE }
>
>> (btw. Interestingly, typing this code into Eclipse with the Descent plug-in
>> causes a Java out of heap space malfunction.)
>
enum Color { RED, GREEN, BLUE }
void foo(Color* c) {
   if (c !is null) handleColor(*c);
}
what's the need for that UNINITIIALIZED member?
    
    
More information about the Digitalmars-d
mailing list