[Issue 12616] AssertError in std.utf.decode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 23 12:22:05 PDT 2014


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

--- Comment #3 from monarchdodra at gmail.com ---
(In reply to Andrej Mitrovic from comment #1)
> Interesting problem. I think decode is wrong in using asserts here. asserts
> are for checking program state, enforce is for checking input. So I think
> the assert should be changed to:
> 
> enforceEx!UTFException(isValidDchar(result));
> 
> Or something similar. monarchdodra what do you think?

BTW: How did you tag me? Did you simply add my email to the cc list?

--


More information about the Digitalmars-d-bugs mailing list