[Issue 3971] Syntax & semantics for array assigns

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 25 16:55:33 PST 2011


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



--- Comment #22 from bearophile_hugs at eml.cc 2011-11-25 16:54:31 PST ---
In DMD 2.057head this code fails still:


void main() {
    int[3] a = [1, 2, 3];
    int[3] b = [10, 20, 30];
    auto c[] = a[] + b[]; // no identifier for declarator c[]
}



void main() pure nothrow {
    int[3] a = [1, 2, 2];
    int[3] b = [10, 20, 20];
    const c = a[] + b[]; // Error: Array operation a[] + b[] not implemented
}

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