[Issue 12210] dlang.org home page example - Run button does not work

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 10 06:55:50 PST 2015


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

--- Comment #12 from Gerald Jansen <jansen.gerald at gmail.com> ---
The "Round floating point numbers" example is too fragile.

It vomits incomprehensible messages (not a pretty sight for casual visitors!)
for almost any input except for one or more floating point numbers separated by
a single space. The default input line "2.4 plus 2.4 ..." causes the crash, for
example. So does any extra leading, trailing or embedded white-space.

(Interestingly, input "2.4 2.4e9" doesn't crash, but only rounds the first
number.)

--


More information about the Digitalmars-d-bugs mailing list