[Issue 3439] New: std.range.Sequence.opIndex not consistent after calling popFront().
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 24 16:22:33 PDT 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 at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at 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: -------
More information about the Digitalmars-d-bugs
mailing list