[Issue 1314] Dupping an empty array creates a null array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 6 02:03:41 PDT 2007


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


brunodomedeiros+bugz at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #6 from brunodomedeiros+bugz at gmail.com  2007-07-06 04:03 -------
(In reply to comment #3)
> d-bugmail at puremagic.com wrote:
> > http://d.puremagic.com/issues/show_bug.cgi?id=1314
> > 
> > ------- Comment #2 from brunodomedeiros+bugz at gmail.com  2007-07-05 17:56 -------
> > I tought you had changed D some releases ago, such that empty arrays became
> > different than null arrays, wasn't that the case? (if not this is not a bug)
> He only changed it so that setting .length to 0 no longer sets .ptr to 
> null. He didn't change anything else regarding empty arrays AFAIK.

You're right, I misunderstood bug #429 .

(and "".length should be 0, there is no doubt about that)


-- 



More information about the Digitalmars-d-bugs mailing list