← Back to index
|
Original Bugzilla link
Bug 3439 – std.range.Sequence.opIndex not consistent after calling popFront().
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-10-24T16:22:00Z
Last change time
2015-06-09T01:26:56Z
Assigned to
andrei
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2009-10-24T16:22:32Z
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 }
Comment #1
by dsimcha — 2010-06-17T18:46:57Z
Fixed SVN.