Can someone explain this?
Jeff
massung at gmail.com
Sat Feb 6 15:28:43 UTC 2021
On Saturday, 6 February 2021 at 15:00:45 UTC, Adam D. Ruppe wrote:
> On Saturday, 6 February 2021 at 14:39:38 UTC, Jeff wrote:
>> Okay, the above works. But, I'm not sure why?
>
> Phobos's enum conversion always looks at the identifier,
> whereas the rest of the language looks at the value.
...
> to!string(op) // goes through the library's conversion
This makes sense and is what I was missing.
Thanks!
More information about the Digitalmars-d-learn
mailing list