std.array.array broken?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Feb 2 04:50:40 PST 2014


On 2/2/14, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> On 2/1/14, 3:07 PM, Andrej Mitrovic wrote:
>> byLine -> safe, doesn't reuse a buffer
>> byLineBuffer -> reuses a buffer
>
> No. Too much breakage.

No, I meant before the function was even introduced. But for future
new APIs we could be more careful. byLine resulting in "strange
results" is one of the most asked about things in IRC and the DForums,
here's a short list of threads I could find in a quick search:

std.array.array broken?
http://forum.dlang.org/thread/ouyuujnzzvfkvxbfzyak@forum.dlang.org#post-ouyuujnzzvfkvxbfzyak:40forum.dlang.org

Reading file by line, weird result
http://forum.dlang.org/thread/iklwhshvwqbubzpvfcgu@forum.dlang.org

csvReader byLine
http://forum.dlang.org/thread/mailman.1694.1340281202.24740.digitalmars-d@puremagic.com#post-mailman.1713.1340376472.24740.digitalmars-d:40puremagic.com

persistent byLine
http://forum.dlang.org/thread/ksj7b6$86b$1@digitalmars.com

array(file.byLine()) is a problem
http://forum.dlang.org/thread/bug-6495-3@http.d.puremagic.com%2Fissues%2F

std.stdio.ByLine is not true input range
http://forum.dlang.org/thread/bug-8084-3@http.d.puremagic.com%2Fissues%2F

Read Complete File to Array of Lines
http://forum.dlang.org/thread/aimdwqgymyuajjbsycfj@forum.dlang.org#post-mefabsmxvzwahzdlkvnp:40forum.dlang.org

File.byLine should return dups?
http://forum.dlang.org/thread/hubkh9$1k6$1@digitalmars.com

Safer stdin.byLine()
http://forum.dlang.org/thread/bug-4474-3@http.d.puremagic.com/issues/


More information about the Digitalmars-d mailing list