[Issue 9656] Built-in dup result should behave as like unique array, if it is possible.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 6 04:32:17 PST 2013


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



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-06 04:32:16 PST ---
(In reply to comment #1)
> (In reply to comment #0)
> 
> A simple question: Why is this not valid?
> 
> carr = [new C].dup;  // NG, expected

That's right, the dup result is essentially unique in it.

Correct NG case is:

  auto c = new C;
  carr = [c].dup;

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