ddmd.canthrow

Compiler implementation of the D programming language.

Members

Functions

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

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

canThrow
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

Meta

Source

See Source File
$(DMDSRC _canthrow.d)