More fun with autodecoding

Walter Bright newshound2 at digitalmars.com
Thu Aug 9 06:44:51 UTC 2018


On 8/8/2018 2:01 PM, Steven Schveighoffer wrote:
> Here's where I'm struggling -- because a string provides indexing, slicing, 
> length, etc. but Phobos ignores that. I can't make a new type that does the same 
> thing. Not only that, but I'm finding the specializations of algorithms only 
> work on the type "string", and nothing else.

One of the worst things about autodecoding is it is special, it *only* steps in 
for strings. Fortunately, however, that specialness enabled us to save things 
with byCodePoint and byCodeUnit.


More information about the Digitalmars-d mailing list