[Issue 11600] New: to!BigInt(string) accepts non-numeric input
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 25 00:11:14 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11600
Summary: to!BigInt(string) accepts non-numeric input
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: supernova2003dh at yahoo.com
--- Comment #0 from supernova2003dh at yahoo.com 2013-11-25 00:11:13 PST ---
The function to!BigInt(string) accepts non-numeric input like "avadakedavra"
without throwing an exception.
Expected result:
An exception is thrown.
Actual result:
No exception is thrown, and the BigInt is initialized.
This violates the principle of least astonishment.
--
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