--- Comment #3 from 2011-10-28 18:22:54 PDT ---
A D2 program that reads a string from the keyboard:

import std.stdio;
void main() {
    string s = readln();
    writeln(">", s, "<");

Running it it shows that the newline is left inside the string s:


I don't know other languages where the command line input function leaves the
newline at the end of the input string. This is why in input() I have used

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to