D's equivalent to C++'s std::move?
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 3 11:37:25 PST 2016
On Wednesday, 3 February 2016 at 19:18:12 UTC, Minas Mina wrote:
> If this becomes the case, please make destructors nothrow so
> that people won't screw up (like they can very easily do in
> C++).
This would be way too much of a restriction. Throwing in
destructors is perfectly fine in D, there is nothing comparable
to C++ where you can "screw up" in the sense that your program
gets terminated when you throw an exception while another is
already being unwound.
— David
More information about the Digitalmars-d
mailing list