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



--- Comment #2 from Kenji Hara <k.hara...@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: -------

Reply via email to