Reading by character and by line from stdin

Timon Gehr timon.gehr at gmx.ch
Thu Aug 25 23:27:42 PDT 2011


On 08/26/2011 06:12 AM, Joel Christensen wrote:
> On 26-Aug-11 10:20 AM, Timon Gehr wrote:
>> On 08/26/2011 12:19 AM, Timon Gehr wrote:
>>> On 08/25/2011 11:34 PM, bellinom wrote:
>> whoops, this is better:
>>
>> auto arr=to!(int[])(split(strip!(readln())));
>>
>
> Or,
> auto arr2=to!(int[])( readln.strip.split );
>
> Got rid of the second ! too (does not work with it). I not sure about
> having no () for 3 of the functions though.
>
> - Joel

... good catch.


More information about the Digitalmars-d-learn mailing list