Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
std.format.formatValue: Names instead of integer values for enum members. #65
On 5/31/11 5:11 AM, andralex wrote: Instead of throwing, how about printing something like cast(T) rawVal? Some valid uses of enums use unnamed values.
Good point, I updated the pull request with another commit also changing to!string(someEnum) to that behavior. By the way, I know that using enum variables for values not corresponding to a member of the type works, but is this documented anywhere? David