nothrow by default
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Fri Jan 10 22:00:08 UTC 2020
On Friday, 10 January 2020 at 16:46:32 UTC, Ola Fosheim Grøstad
wrote:
> 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.
My point is c++ is not removing what is being proposed for adding
'throw'
More information about the Digitalmars-d
mailing list