Am 26.04.2011 15:11, schrieb Alexander: > After all, array is a pointer (=reference), and arrays are not structs > (=values), so I see no reason to disallow this, to be honest. >
No, in D arrays are not just pointers. It's indeed a struct that contains the length (arr.length) and the pointer (arr.ptr). This makes arrays in D a lot safer and also easier to use than in C. Cheers, - Daniel
