string enums

Ali Çehreli acehreli at yahoo.com
Sat Apr 27 14:04:23 PDT 2013


On 04/27/2013 12:02 PM, Lodo wrote:

 > I found that if I try to make an enum of doubles, dmd outputs 36 very
 > complex error messages.

That works too. Tried with 2.063-devel-f6d55a9-dirty:

enum Type : double
{
     a = 1.5,
     b = 2.5
}

void main()
{
     auto e = Type.min;
}

Ali



More information about the Digitalmars-d-learn mailing list