nothrow by default
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Fri Jan 10 16:46:32 UTC 2020
On Friday, 10 January 2020 at 16:32:33 UTC, Jesse Phillips wrote:
> My searches come up empty handed, but I'm applying the
> incorrect semantics to throw(), that is equal to the noexcept
> semantics which is equal to D's nothrow. I don't see the same
> proposed semantics in c++.
That's right. C++ has the "noexcept" speficier which also can be
expressed as "noexcept(true)" in generic programming, but the
default is "noexcept(false)" (with a few special cases).
The C++ semantics is the opposite of nothrow by default.
More information about the Digitalmars-d
mailing list