Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2011

Conversation

dnadlinger
Copy link
Member

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