ddmd.escape

Compiler implementation of the D programming language.

Members

Functions

checkEscape
bool checkEscape(Scope* sc, Expression e, bool gag)

Detect cases where pointers to the stack can 'escape' the lifetime of the stack frame. Print error messages when these are detected.

checkEscapeRef
bool checkEscapeRef(Scope* sc, Expression e, bool gag)

Detect cases where returning 'e' by ref can result in a reference to the stack being returned. Print error messages when these are detected.

Meta

Source

See Source File
$(DMDSRC _escape.d)