[Issue 3971] Syntax & semantics for array assigns

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 18 16:27:51 PDT 2010


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



--- Comment #5 from bearophile_hugs at eml.cc 2010-04-18 16:27:47 PDT ---
This:
a = b;      static  dynamic
static      Err2    Err
dynamic     Err     OK2

Means:
int[5] a, b;
a = b; // Err2
int[] c = new int[5];
a = c; // Err
c = a; // Err
int[] d = new int[5];
c = d; // OK

But:
a[] = c[]; // OK
c[] = a[]; // OK

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