[Issue 3971] Syntax & semantics for array assigns

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 19 17:30:30 PDT 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #8 from Don <clugdbug at yahoo.com.au> 2010-04-19 17:30:28 PDT ---
(In reply to comment #7)
> All this discussion looks academic because so far Walter seems uninterested in
> this enhancement request.

Bearophile, please stop making absurd statements like that one. If Walter makes
no comment on something, you can't conclude *anything* about his attitude to
it. He's just extremely busy.
---

Almost all bugs and weird behaviour involving array operations happen because
internally the compiler doesn't distinguish between  x[] and x, where x is a
dynamic array. This causes a multitude of problems, especially when
multidimensional arrays are involved.

I agree with you that this syntax is problematic. I don't understand why it's
currently permitted:

int[3] s;
int[3] t;
s[] = t;      // the 3 elements of t[3] are copied into s[3]

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