What is the exact meaning of 'nothrow'?
ZombineDev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 10 17:42:44 PDT 2015
On Thursday, 11 June 2015 at 00:32:45 UTC, ZombineDev wrote:
> Environment exceptions are stuff like user input and network
> and file access. This are problems that you generally want to
... These* are ...
> handle and that's why they're considered recoverable.
>
> So 'Exception's propagate through function calls and 'Error's
> terminate the program immediately.
>
> A function 'f' marked as "nothrow" indicates that no exceptions
> shall escape from it (if a function that 'f' calls can throw,
> 'f' must written, so that it catches the exception), but since
... catches *all possible exceptions*), ...
> 'Error's terminate the program immediately the callers of 'f'
> should not care about them and that's why 'Error's don't brake
... don't break* ...
More information about the Digitalmars-d-learn
mailing list