What's wrong with this enum?

Andrej Mitrovic none at none.none
Wed Feb 23 15:41:09 PST 2011


// Works
enum : int[string]
{
    Circle = ["CoolCircle":50]
}    

//  Error: non-constant expression ["CoolCircle":50]
enum shapes : int[string]
{
    Circle = ["CoolCircle":50]
}

I can't find this in bugzilla.


More information about the Digitalmars-d-learn mailing list