W3cubDocs

/D

ddmd.canthrow

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source:
canthrow.d
bool canThrow(Expression e, FuncDeclaration func, bool mustNotThrow)

Returns true if the expression may throw exceptions. If 'mustNotThrow' is true, generate an error if it throws

bool Dsymbol_canThrow(Dsymbol s, FuncDeclaration func, bool mustNotThrow)

Does symbol, when initialized, throw? Mirrors logic in Dsymbol_toElem().

© 1999–2017 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/ddmd_canthrow.html