Functions, nothrow and assert

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 8 05:03:27 PDT 2016


On Thursday, 8 September 2016 at 11:45:32 UTC, Basile B. wrote:
> f() is nothrow because assert() throws an "AssertError" not an 
> "Exception". Since Error descendants are not recoverable the 
> program usually crashes.

The program is guaranteed to crash unless you catch the error 
(not recommended).


More information about the Digitalmars-d-learn mailing list