[Issue 8084] std.stdio.ByLine is not true input range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 11 12:09:06 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8084


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |schveiguy at yahoo.com
         Resolution|                            |WONTFIX


--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2012-05-11 12:10:30 PDT ---
In order for byLine to be efficient, it must reuse the buffer it's reading.  In
order for the above code to be equivlent, it must dup every line, which is
hugely inefficient if you aren't going to use them beyond the scope of the
foreach statement.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list