https://issues.dlang.org/show_bug.cgi?id=16263
Andrew Godfrey <ag.dl...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ag.dl...@gmail.com --- Comment #2 from Andrew Godfrey <ag.dl...@gmail.com> --- (In reply to Ketmar Dark from comment #1) > it is autodecoding again: std.utf.byChar will do the trick. note that it > works perfectly with array of dchars, as those need not to be decoded. That will not work "perfectly" in all languages. I don't speak a language where it doesn't work, so can't give a good example. But it doesn't make sense to permute dchars that don't represent whole 'characters'. Anyway, I'm just cautioning against this apparent workaround. If you need to permute characters, it sounds like you can use dchars, but you should additionally restrict yourself to dchar values that represent whole characters. (Or to languages where that's true for all the characters you'll use). --