Autodecode in the wild and An Awful Hack to std.regex

John Carter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 28 14:02:59 PDT 2016


On Thursday, 28 July 2016 at 15:48:58 UTC, Seb wrote:
> We call them DIP (D Improvement Proposals) and I think it's a 
> lot more productive way to discuss improvements than in the 
> forum.

Eh. I hoped that somewhere in that explosion of discussion on the 
topic the problem had been solved and I had just missed it and 
merely had to use that.

Also this idea is a bit immature for a DIP... I haven't look at 
the regex code beyond the the stack trace it died on.

ie.

* Would this even be a Good Idea for a dip or is it better solve 
by another existing means?
* I only inspected and changed one occurrence of decode (the one 
that broke) is there any other route in the regex engine that 
could throw a UTFException?
* Would adding an additional template parameter with default 
break existing code? Or would I have to provide a shim?



More information about the Digitalmars-d-learn mailing list