[Issue 12113] A nothrow std.utf.decode with substitution on bad encoding
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 8 14:43:04 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12113
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2014-02-08 14:43:03 PST ---
Is it possible to generalize this to layz ranges? Currently this can't be
nothrow. Can it become nothrow using your suggestion?
void main() nothrow {
string txt = "hello";
foreach (dchar c; txt) {}
}
Currently it gives:
test.d(3): Error: '_aApplycd1' is not nothrow
test.d(1): Error: function 'D main' is nothrow yet may throw
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list