[Issue 15293] [REG2.069.0] std.stdio.readln(buffer) messes up buffer's capacity

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 12 08:53:57 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15293

--- Comment #11 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to HeiHon from comment #10)
> (In reply to Steven Schveighoffer from comment #9)
> > When it was originally written, this is what byLine did, but now it's
> > changed.
> 
> So probably the change to byLine introduced the problem?

No, what I meant by that is that byLine simply called readln over and over with
the same buffer. So killing the performance of this mechanism would kill the
performance of byLine.

However, now byLine always passes in the same buffer without caring what readln
did. So the concern that made this whole thing complicated sort of went away :)

> I tested my examples on 2.068.2 and some versions before.
> No problem there on Windows.

The readln updates were released in 2.069, so this makes sense.

--


More information about the Digitalmars-d-bugs mailing list