std.array oddness

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 13 02:10:18 PST 2014


On Sat, 13 Dec 2014 10:01:49 +0000
bearophile via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> > 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).
that thing is not documented on dlang.org (i assume that it's from
upcoming 2.067).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141213/d243a3ab/attachment.sig>


More information about the Digitalmars-d-learn mailing list