dmd.constfold

Perform constant folding of arithmetic expressions.

Discussion

The routines in this module are called from optimize.d.

Authors

Walter Bright

Source: constfold.d

  • Declaration

    int isConst(Expression e);

    Return Value

    true if e is a constant

  • Declaration

    void cantExp(out UnionExp ue);

    Initialize a EXP.cantExpression Expression.

    Parameters

    UnionExp ue

    where to write it