FuncDeclaration.setImpure

The function is doing something impure, so mark it as impure.

class FuncDeclaration
extern (D) final
bool
setImpure
(,
const(char)* fmt = null
,
RootObject arg0 = null
)

Parameters

loc Loc

location of impure action

fmt const(char)*

format string for error message. Must include "%s %s" for the function kind and name.

arg0 RootObject

(optional) argument to format string

Return Value

Type: bool

true if there's a purity error

Meta