www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Doc bug in arrays.html

reply Bruno Medeiros <daiphoenixNO SPAMlycos.com> writes:
In http://digitalmars.com/d/arrays.html , Static Initialization of 
Static Arrays, in the:
   enum Color { red, blue, green };
   int value[Color.max + 1] = [ blue:6, green:2, red:5 ];
the second line should be:
   int value[Color.max + 1] = [Color.blue:6, Color.green:2, Color.red:5];

Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to 
be... unnatural."
Feb 11 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
Right you are. I'll get it fixed. 
Feb 14 2006