http://d.puremagic.com/issues/show_bug.cgi?id=5543
--- Comment #12 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-12-21 08:04:19 PST --- (In reply to comment #9) > int numericValue(dchar c) @safe pure nothrow What about int->dchar? We could call it toNumericChar or something, but it would probably have to throw on invalid input? Or can we also return -1? E.g. char toNumericChar(int i) @safe pure nothrow { return cast(char)((0 <= i && i <= 9) ? (i + '0') : -1); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------