Converting all enum members to a string fails with version 2.0.72.0

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 21 09:45:15 PST 2016


On Monday, 21 November 2016 at 17:26:37 UTC, Jonathan M Davis 
wrote:
> On Monday, November 21, 2016 17:01:56 Stefan via 
> Digitalmars-d-learn wrote:
>> [...]
> [...]
> there was an overload for toUpper that took string as an 
> optimization but that inadvertently meant that types that 
> implicitly converted to strings worked with it and were 
> converted to string, whereas with 2.072.0, they now have to 
> pass isSomeString.
> [...]
> I think that the change is getting reverted for 2.072.1, 
> because it broke existing code, but for now at least, enums 
> aren't going to work with toUpper or toLower.
> [...]

Indeed: https://issues.dlang.org/show_bug.cgi?id=16663


More information about the Digitalmars-d-learn mailing list