[Issue 9674] std.algorithm.filter problems with non-deterministic _input.front
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 9 16:35:31 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9674
--- Comment #6 from bearophile_hugs at eml.cc 2013-03-09 16:35:29 PST ---
(In reply to comment #4 and #5)
> The code depends on front of the source range being consistent across calls.
front() is not tagged with "pure", so you can't depend on that.
> (If that is not what is wanted, a lot of caching would have to be introduced
into most std.algorithm/std.range ranges.)
Otherwise I think the "pure" attribute needs be added in many of those Phobos
places.
--
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