string[] enumerations
Nrgyzer
nrgyzer at gmail.com
Tue May 10 13:26:41 PDT 2011
Hi there,
I need enumerations with string[] as base type. It works when I use
enum MyEnum : string[] {
a = ["a", "b", "c"],
}
but when I add more types like
enum MyEnum : string[] {
a = ["a", "b", "c"],
b = ["d", "e", "f"],
c = ["g", "h", "i"], // ...
}
I always get the following error(s):
Error: Integer constant expression expected instead of ["a", "b",
"c"] < ["a", "b", "c"]
Is there any solution in D to realize to add more than one string[]-
array to an enumeration?
Thanks!
More information about the Digitalmars-d-learn
mailing list