Advent of Code 2019

Sergei Nosov sergei.nosov at gmail.com
Mon Nov 25 11:57:58 UTC 2019


On Monday, 25 November 2019 at 11:51:41 UTC, Uknown wrote:
> Use `std.string.representation` to bypass autodecoding. It just 
> casts the string to `ubyte[]` which is what you need most of 
> the time. Then case back to string as necessary with 
> `assumeUTF`.

Yeah, that's what I did.

But then I needed to create overloads for functions, like, 
toUpper, because `ubyte` doesn't implicitly convert to `dchar`. 
It's not a big deal, but it's kinda messy.


More information about the Digitalmars-d mailing list