dmd.canthrow
Perform checks for nothrow
.
Specification: Nothrow Functions
License
Source: canthrow.d
Documentation: https://dlang.org/phobos/dmd_canthrow.html
-
Declaration
enum
CT
: BE; -
Declaration
BE
canThrow
(Expressione
, FuncDeclarationfunc
, boolmustNotThrow
);Returns
true
if the expression may throw exceptions. If 'mustNotThrow
' istrue
, generate an error if it throws