string enums
Lodo
lodovico at giaretart.net
Sat Apr 27 11:34:22 PDT 2013
Hi!
I'm having some troubles with an enum with base type string.
Here's the code:
enum Type:string
{
DOT="DOT",
ID="ID",
MODULE="MODULE",
SEMICOLON="SEMICOLON",
ERROR="ERROR",
EOF="EOF"
}
For every element of the enum, dmd writes this message two times:
Integer constant expression expected instead of "DOT"
(with "ID", "MODULE", ... instead of "DOT")
Am I doing something wrong?
Thanks in advance.
Lodo
More information about the Digitalmars-d-learn
mailing list