foreach over string enum
Nrgyzer
nrgyzer at gmail.com
Thu Feb 10 08:58:40 PST 2011
Hey guys,
I'm trying to iterate over an enumeration which contains strings like
the this:
enum FileName : string {
file1 = "file1.ext",
file2 = "file2.ext"
}
I already found this article: http://lists.puremagic.com/pipermail/
digitalmars-d/2007-July/021920.html but it's an enum which contains
integers instead of strings, thus I can't use min- or max-property.
Any suggestions -> thanks in advance!
More information about the Digitalmars-d-learn
mailing list