Expression.checkReadModifyWrite

Check whether the expression allows RMW operations, error with rmw operator diagnostic if not. ex is the RHS expression, or NULL if ++/-- is used (for diagnostics) Returns true if error occurs.

class Expression
extern (D) final
bool
checkReadModifyWrite
(
TOK rmwOp
,
Expression ex = null
)
Suggestion Box / Bug Report