dmd.builtin
Implement CTFE for intrinsic (builtin
) functions.
Discussion
Currently includes functions from std.math
, core.math
and core.bitop
.
License
Source: builtin.d
Documentation: https://dlang.org/phobos/dmd_builtin.html
-
Declaration
BUILTIN
isBuiltin
(FuncDeclarationfd
);Determine if function is a builtin one that we can evaluate at compile time.
-
Declaration
Expression
eval_builtin
(const ref Locloc
, FuncDeclarationfd
, Expressions*arguments
);Evaluate builtin function. Return result; NULL if cannot evaluate it.