Skip to content

Conversation

dnadlinger
Copy link
Contributor

std.format.formatValue: Names instead of integer values for enum members.

to!string(someEnum) is already implemented like that, which led to writeln(to!string(someEnum)) and writeln(someEnum) giving different results.

…ers.

to!string(someEnum) is already implemented like that, which led to writeln(to!string(someEnum)) and writeln(someEnum) giving different results.
Instead, »cast(EnumType)rawValue« is printed/returned for these cases.
andralex added a commit that referenced this pull request Jun 1, 2011
std.format.formatValue: Names instead of integer values for enum members.
@andralex andralex merged commit cbe0d06 into dlang:master Jun 1, 2011
skoppe pushed a commit to skoppe/phobos that referenced this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants