Comment #0 by destructionator — 2013-11-27T11:43:01Z
Given:
enum Numbers {
zero = 0,
one = 1,
two = 2,
FILE_NOT_FOUND = 101
}
dmd -X gives:
{
"name" : "Numbers",
"kind" : "enum",
"line" : 20,
"baseDeco" : "i",
"members" : [
{
"name" : "zero",
"kind" : "enum member",
"line" : 21
},
{
"name" : "one",
"kind" : "enum member",
"line" : 22
},
{
"name" : "two",
"kind" : "enum member",
"line" : 23
},
{
"name" : "FILE_NOT_FOUND",
"kind" : "enum member",
"line" : 24
}
]
},
Good, but not great: it doesn't include the value given, so there's no way when reading this to know that FILE_NOT_FOUND is not equal to three.
It should include the value, if at all possible
Comment #1 by github-bugzilla — 2014-04-24T13:53:23Z