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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------