What is the exact meaning of 'nothrow'?
Mike via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 10 22:52:22 PDT 2015
On Thursday, 11 June 2015 at 00:27:36 UTC, Ali Çehreli wrote:
> "Note: Remember that it is not recommended to catch Error nor
> its base class Throwable. What I mean by "any exception" here
> is "any exception that is defined under the Exception
> hierarchy." A nothrow function can still emit exceptions that
> are under the Error hierarchy, which represents irrecoverable
> error conditions that should preclude the program from
> continuing its execution."
>
> In other words, nothrow means "does not emit Exception, it can
> still emit Error."
Feel free to donate those finely worded statements to the
official docs.
Mike
More information about the Digitalmars-d-learn
mailing list