[Issue 8061] std.algorithm.joiner breaks when used with InputRangeObject

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 20 08:07:29 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8061



--- Comment #6 from hsteoh at quickfur.ath.cx 2012-12-20 08:07:24 PST ---
Correction: Andrei said on the forum that the definition of .save does not
guarantee that inner ranges are saved. So std.array.save is correct. The
problem is with std.algorithm.joiner: just because both outer and inner ranges
are forward ranges, does NOT mean that the .save'd copy of the outer range
preserves the state of the inner ranges (in fact, it does not, in the general
case).

std.range.FrontTransversal and std.range.Transversal also suffer from this
wrong assumption.

-- 
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