Problem with using readln.

arturg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 29 23:48:57 PDT 2017


On Sunday, 30 April 2017 at 05:53:09 UTC, Andrew Edwards wrote:
>             string line;
>             parse!int((line = readln)).writeln;
> 

is there a reason you mix normal call and ufc or just some style?
you can do this and remove some ()

(line = readln).parse!int.writeln;


More information about the Digitalmars-d-learn mailing list