[Issue 13829] std.uni.byCodePoint for strings has length

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 11 09:01:49 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=13829

--- Comment #5 from Dmitry Olshansky <dmitry.olsh at 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.

--


More information about the Digitalmars-d-bugs mailing list