shuffle a character array
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 20 10:39:47 PDT 2016
On Wednesday, 20 July 2016 at 17:31:18 UTC, Ali Çehreli wrote:
> I think both not being random access ranges and there is
> auto-decoding in Phobos are design decisions due to the fact
> that char[] is a multi-byte encoding.
>
> Phobos could choose not to auto-decode but char[] would still
> be multi-byte, making it impossible to access randomly.
but it does happen that we have autodecoding, and
non-random-access char ranges, and it is clearly tied. so,
leaving aside "what if..." things, we can say that it is
autodecoding issue. ;-)
More information about the Digitalmars-d-learn
mailing list