readln() doesn't stop to read the input.

tcak via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 27 01:22:34 PDT 2015


On Friday, 27 March 2015 at 05:17:03 UTC, jonaspm wrote:
> but readln(p); isn't supposed to read input and store it into p?

Nope. Parameter is terminator character. Read string is returned 
from the function. So, it would be like:

string p = readln();


More information about the Digitalmars-d mailing list