Re: Example code on D homepage does not run successfully

2015-10-17 Thread NX via Digitalmars-d
On Saturday, 17 October 2015 at 12:57:25 UTC, Ralph Tandetzky wrote: If I understand this cryptic error message correctly, the problem is missing or inadequate input. There is no floating point number to be parsed and hence the string "" is parsed unsuccessfully which leads to an exception

Example code on D homepage does not run successfully

2015-10-17 Thread Ralph Tandetzky via Digitalmars-d
Hi! The following code snippet, that appears on the dlang.org homepage does not run successfully: // Round floating point numbers import std.algorithm, std.conv, std.functional, std.math, std.regex, std.stdio; // Transforms input into a real number, // rounds it, then to a

Re: Example code on D homepage does not run successfully

2015-10-17 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 17 October 2015 at 12:57:25 UTC, Ralph Tandetzky wrote: If I understand this cryptic error message correctly, the problem is missing or inadequate input. There is no floating point number to be parsed and hence the string "" is parsed unsuccessfully which leads to an exception

Re: Example code on D homepage does not run successfully

2015-10-17 Thread Ralph Tandetzky via Digitalmars-d
On Saturday, 17 October 2015 at 17:02:07 UTC, NX wrote: It's not because input is empty, but rather that across-web compiling is highly broken and problematic. There is an "Input" button bottom of the code area which shows what input will be given to stdin, which is actually not empty (it's

Re: Example code on D homepage does not run successfully

2015-10-17 Thread bachmeier via Digitalmars-d
On Saturday, 17 October 2015 at 17:02:07 UTC, NX wrote: Maybe one day someone will take care of improving the infrastructure... The right thing to do is to get it off the homepage until it's fixed. Few visitors would not move on after getting an error where one should never occur. And as