Problem with std.string.strip(): Can't use result in format routine
    Andrea Fontana via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Sep  5 06:56:20 PDT 2017
    
    
  
On Tuesday, 5 September 2017 at 13:40:18 UTC, Ky-Anh Huynh wrote:
> On Tuesday, 5 September 2017 at 13:17:34 UTC, Azi Hassan wrote:
>>
>> Maybe it has something to do with how you read from STDIN. Can 
>> you show that part of the code to see if I can reproduce the 
>> issue ?
>
> I used `lines(stdin)` as in 
> https://dlang.org/phobos/std_stdio.html#.lines . My source code 
> is here
>
> https://github.com/icy/dusybox/blob/master/src/plotbar/main.d#L47 .
>
> Thanks for your support.
I think formattedRead is consuming your string.
Andrea
    
    
More information about the Digitalmars-d-learn
mailing list