retro() on a `string` creates a range of `dchar`, causing array() pains

bearophile bearophileHUGS at lycos.com
Tue Apr 17 08:58:11 PDT 2012


Ali Çehreli:

> The reason is, a sequence of UTF-8 code units are not a valid 
> UTF-8 when reversed (or retro'ed :p).

But reversed(char[]) now works :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list