https://issues.dlang.org/show_bug.cgi?id=13829
--- Comment #5 from Dmitry Olshansky <dmitry.o...@gmail.com> --- (In reply to Peter Alexander from comment #3) > In a perfect world, I think it should return a different range, but it's now > a breaking change, and even breaks its documented behaviour. So I'm voting > that this shouldn't be fixed. > > Note: hasLength will still return false. Let's us not replicate the broken 'string has no length except it does' stuff even more. If the user says byCodePoint he definetely expects a proper range. I'll change the documentation to reflect this. --