Dealing with Autodecode

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue May 31 23:14:59 PDT 2016


On Tue, May 31, 2016 at 07:28:04PM -0700, Jonathan M Davis via Digitalmars-d wrote:
[...]
> The other critical thing is to make sure that Phobos in general works with
> byDChar, byCodeUnit, etc. For instance, pretty much as soon as I started
> trying to use byCodeUnit instead of naked strings, I ran into this:
> 
> https://issues.dlang.org/show_bug.cgi?id=15800

This is an example of current Phobos code assuming (sometimes
implicitly) that strings are ranges of dchar, which leads to subtle
breakage like this one:

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


T

-- 
"640K ought to be enough" -- Bill G. (allegedly), 1984.
"The Internet is not a primary goal for PC usage" -- Bill G., 1995.
"Linux has no impact on Microsoft's strategy" -- Bill G., 1999.


More information about the Digitalmars-d mailing list