appender!(string[]).put(string) doesn't work
David Held via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Feb 8 16:14:24 PST 2015
On 2/8/2015 4:09 PM, David Held wrote:
> auto data = appender!(string[]);
> ...
> data.put(someString);
> [...]
Never mind. someString is actually the result of stdin.byLine(), which
returns a char[], not a string. I didn't notice this until just now.
.idup fixes this just fine (although, I suppose changing it to char[][]
might be even better).
Dave
More information about the Digitalmars-d-learn
mailing list