Issue 10060 - readf doesn't work with arrays
Summary: readf doesn't work with arrays
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: alex.jercaianu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 13:37 UTC by Martin Nowak
Modified: 2024-12-01 16:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2013-05-10 13:37:58 UTC
import std.stdio;

void main()
{
    int[] s1;
    readf("%(%d,%)", &s1);
}

----

Even though unformatRange works, this code fails to compile, because it can't instantiate std.conv.parse!(int[]) with a LockingTextWriter.

https://github.com/D-Programming-Language/phobos/blob/2613bc8c3a7ad527ccdf58028765555392706ac9/std/format.d#L4043
Comment 2 dlangBugzillaToGithub 2024-12-01 16:17:33 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9973

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB