[Issue 4521] Array-wise assignment on unallocated array is accepted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 27 23:57:24 PDT 2010


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |clugdbug at yahoo.com.au
            Summary|accepts-invalid Array-wise  |Array-wise assignment on
                   |assignment on unallocated   |unallocated array is
                   |array is accepted           |accepted


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-07-27 23:57:22 PDT ---
(In reply to comment #1)
> Maybe I'm missing something, but no it should not.
> "c[] = 4;" just sets every array element to 4, and it works even if there are 0
> array elements.

Yes. Some related situations are definitely bugs though. Perhaps this one
should be marked as a duplicate of bug 2547.

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