digitalmars.D.bugs - [Issue 21629] New: std.csv report one record on empty input
- d-bugmail puremagic.com (27/27) Feb 11 2021 https://issues.dlang.org/show_bug.cgi?id=21629
https://issues.dlang.org/show_bug.cgi?id=21629 Issue ID: 21629 Summary: std.csv report one record on empty input Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: enhancement Priority: P3 Component: phobos Assignee: nobody puremagic.com Reporter: deadalnix gmail.com I have the following dumbed down sample: struct Reccord { string a; string b; } import std.csv; string input = ""; foreach (reccord; cvsReader!Reccord(input)) { assert(0, "No reccord are expected"); } This sample code trips the assert as cvsReccord emit one empty record with an empty a and b. I think this is erroneous. --
Feb 11 2021