[Issue 4695] New: std.range.zip is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 20 15:12:42 PDT 2010


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

           Summary: std.range.zip is broken
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: necroment at gmail.com


--- Comment #0 from Max Klyga <necroment at gmail.com> 2010-08-20 15:12:41 PDT ---
import std.range;

void main() {
    auto a = [ 1, 2, 3 ];
    immutable b = [ 1, 2, 3 ];
    zip(a, b);
}

outputs: 
src/phobos/std/range.d(1732): Error: can only initialize const member
_field_field_1 inside constructor

import std.range;

void main() {
    auto a = [ 1, 2, 3 ];
    auto b = [ 'a', 'b', 'c' ];
    zip(a, b);
}

outputs:
src/phobos/std/range.d(1773): Error: front(this.ranges._field_field_1) is not
an lvalue

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