www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3752] New: File.byLine fetches lines in a confusing manner

reply d-bugmail puremagic.com writes:
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: -------
Jan 29 2010
next sibling parent d-bugmail puremagic.com writes:
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: -------
Jan 29 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Jan 30 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Jan 08 2011
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Jun 05 2011