[Issue 5777] Move semantics require full spec NRVO

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 25 19:30:54 PDT 2011


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



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2011-03-25 19:27:32 PDT ---
Created an attachment (id=935)
3 Patches

These patches has 3 points.

1. Allow NRVO for user-defined destructor object.
2. Eliminate destructor call of return value that non-copyable object in NRVO
function.
3. On assignment (e1 = e2) if e2 is non-copyable and prvalue, this expression
generates following code:
   e1.__dtor();
   e1 = e2;  // bit copy

This is much experimental, but I hope that it helps the language evolution.

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