readf for the novice
Ali Çehreli
acehreli at yahoo.com
Mon Aug 16 14:11:50 PDT 2010
Sean Kelly wrote:
> Ali Çehreli Wrote:
>> int i;
>> int j;
>>
>> readf("%s", &i);
>> readf("%s", &j);
>>
>> When the input is
>>
>> 42 43
>>
>> the output is
>>
>> std.conv.ConvError: std.conv(1070): Can't convert value
>> `LockingTextReader(File(807637C), )' of type LockingTextReader to
type int
>> [...]
>>
>> Is that by design? Should the users strip the input themselves?
>
> It looks like a bug to me.
Opened
http://d.puremagic.com/issues/show_bug.cgi?id=4656
Thank you,
Ali
More information about the Digitalmars-d
mailing list