[Issue 11287] NRVO should remove dtor call completely
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 17 09:08:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11287
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-17 09:08:07 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
>
> > Unfortunately current D language spec does not mention about NRVO, so It's
> > still one of the optimizations. But, at least, current dmd always apply NRVO
> > for the specific test case.
>
> How are the standard library's constructs such as "scoped" supposed to work if
> NRVO is optional?
Yes. std.typecons.scoped requires NRVO in order to implement its own semantic.
That's why NRVO should be mentioned properly in language spec.
--
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