dmd.canthrow
Perform checks for nothrow.
Specification: Nothrow Functions
License
Source: canthrow.d
Documentation: https://dlang.org/phobos/dmd_canthrow.html
-
Declaration
enumCT: BE; -
Declaration
CTcanThrow(Expressione, FuncDeclarationfunc, ErrorSinkeSink);If
is noteSinknull, generate an error ifthrowseParameters
Expressioneexpression to check for throwing
FuncDeclarationfuncfunction
ErrorSinkeSinkif !
null, then send error messages toeSinkReturn Value
CT.exceptionorCT.errorif the expression may throw exceptions.