Thread overview
[Issue 3752] New: File.byLine fetches lines in a confusing manner
Jan 29, 2010
Pelle Månsson
Jan 30, 2010
Pelle Månsson
January 29, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3752

           Summary: File.byLine fetches lines in a confusing manner
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrei@metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-01-29 08:25:13 PST ---
Refer to the newsgroup discussion "Re: Accessors, byLine, input ranges".

The constructor of ByLine eagerly fetches a line (it shouldn't). The actual
data transfer should ideally occur only in front().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 29, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3752



--- Comment #1 from Pelle Månsson <pelle.mansson@gmail.com> 2010-01-29 10:59:45 PST ---
Created an attachment (id=559)
Rearranged using filled flag

Now featuring an idle constructor.

I hope I got the patch generation right. :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 30, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3752


Pelle Månsson <pelle.mansson@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pelle.mansson@gmail.com


--- Comment #2 from Pelle Månsson <pelle.mansson@gmail.com> 2010-01-30 11:06:24 PST ---
Actually, that's no good. Multiple calls to popFront will not advance the range. Ignore my patch, sorry about the noise.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3752


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3752


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-06-05 19:17:50 PDT ---
Fixed: https://github.com/D-Programming-Language/phobos/commit/7f154259fa8ffa7ab722d641e15bb68aeb6afac6

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