std.array oddness

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 13 02:01:49 PST 2014


ketmar:

> no, you are using `.byLine` incorrectly. ;-) `.byLine` reuses 
> it's
> internal buffer for each line, so you have to copy that buffer.

A simple solution is to use byLineCopy (that unfortunately should 
have been the default behavior since the beginning).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list