[Issue 3123] std.algorithm.zip fails on 'lazy' ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 25 21:10:51 PDT 2009


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



--- Comment #3 from Kyle Foley <k-foley at onu.edu> 2009-10-25 21:10:50 PDT ---
(In reply to comment #1)
> The problem looks to be a question of whether range.front is an lvalue or not. 
> When range.front is an lvalue, DMD interprets &range.front as taking the
> address of the front element of the range.  When range.front is not an lvalue,
> DMD interprets &range.front as taking the address of the member function
> front() of range.

The problem is that Proxy tries to store a pointer to the fronts of each range.
 In the case of these 'lazy' ranges, the pointer makes no sense.  I have
uploaded a new version of Zip which I think solves this problem.

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