[Issue 3971] Syntax & semantics for array assigns

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 12 17:41:48 PDT 2010


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



--- Comment #1 from bearophile_hugs at eml.cc 2010-04-12 17:41:46 PDT ---
But be careful, in this code Tri c[] is seen as Tri[] c, and it doesn't
compile:

alias double[3] Tri;
void main() {
    Tri a = [1, 2, 3];
    Tri b = [10, 20, 30];
    Tri c[] = a1[] - b1[]; // ERR
}

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