[Issue 7759] Inconsistencies with Array Operations

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 24 02:27:36 PDT 2012


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



--- Comment #3 from Daniel <daniel350 at bigpond.com> 2012-03-24 02:27:57 PDT ---
If nothing else, the following must be a compiler bug, or otherwise a very
unclear syntax;

int[2] fnc(int[2] a, int[2] b) {
    return a[] + b[]; // Error: cannot implicitly convert expression (a[] +
b[]) of type int[] to int[2LU]
}

int[2] fnc2(int[2] a, int[2] b) {
    int[2] x = a[] + b[];
    return x; // ok
}

regards,

Daniel :)

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