[Issue 7444] Require [] for array copies too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 10 04:23:34 PST 2012


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2012-02-10 04:23:32 PST ---
(In reply to comment #4)
> Maybe sa[] = da and da[] = da should be '// X' too.

Hmm, OK. If it is an element-wise assignment, we should add explicit slicing
both side of AssignExp.

I've posted a pull to implement this enhancement:
https://github.com/D-Programming-Language/dmd/pull/702

Updated test:
https://github.com/D-Programming-Language/dmd/pull/702/files#L6R250

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