<div dir="ltr">well then it's a bug:<div><br></div><div><a href="https://d.puremagic.com/issues/show_bug.cgi?id=11721">https://d.puremagic.com/issues/show_bug.cgi?id=11721</a><br></div><div><div><br></div><div>this is the 3rd regression I'm posting today! </div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 10, 2013 at 4:45 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday, December 10, 2013 15:52:06 Timothee Cour wrote:<br>
> in std.utf shouldn't we throw UTFException instead of assert(0) in stride,<br>
> etc ?<br>
<br>
</div>std.utf only uses assert(0) when that code should be unreachable. It's used to<br>
catch bugs in the implementation, not in a function's input. If anything in<br>
std.utf ever hits an assert(0), it's a bug. A UTFException _is_ thrown when a<br>
std.utf function encounters invalid Unicode. It's certainly possible that<br>
there's a bug involving assert(0) in std.utf, but there shouldn't be any case<br>
in all of Phobos where an assert(0) would actually be hit.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br></div>