dmd.builtin

Implement CTFE for intrinsic (builtin) functions.

Discussion

Currently includes functions from std.math, core.math and core.bitop.

Authors

Walter Bright

Source: builtin.d

  • Declaration

    BUILTIN isBuiltin(FuncDeclaration fd);

    Determine if function is a builtin one that we can evaluate at compile time.

  • Declaration

    Expression eval_builtin(const ref Loc loc, FuncDeclaration fd, Expressions* arguments);

    Evaluate builtin function. Return result; NULL if cannot evaluate it.