Thread overview
[Issue 3439] New: std.range.Sequence.opIndex not consistent after calling popFront().
Oct 24, 2009
David Simcha
Jun 18, 2010
David Simcha
October 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3439

           Summary: std.range.Sequence.opIndex not consistent after
                    calling popFront().
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: dsimcha@yahoo.com


--- Comment #0 from David Simcha <dsimcha@yahoo.com> 2009-10-24 16:22:32 PDT ---
import std.stdio, std.range;

void main() {
    auto odds = sequence!("a.field[0] + n * a.field[1]")(1, 2);
    writeln(odds.front, '\t', odds[0]);  // 1    1

    odds.popFront;
    writeln(odds.front, '\t', odds[0]);  // 3    1

    odds.popFront;
    writeln(odds.front, '\t', odds[0]);  // 5    1
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 25, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3439


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         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 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3439


David Simcha <dsimcha@yahoo.com> changed:

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


--- Comment #1 from David Simcha <dsimcha@yahoo.com> 2010-06-17 18:46:57 PDT ---
Fixed SVN.

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