dmd.dinterpret
The entry point for CTFE.
Specification: ($LINK2 https://dlang.org/spec/function.html#interpretation, Compile Time Function Execution (CTFE))
License
Source: dinterpret.d
Documentation: https://dlang.org/phobos/dmd_dinterpret.html
-
Declaration
ExpressionctfeInterpret(Expressione);Entry point for CTFE. A compile-time result is required. Give an error if not possible.
Discussion
must be semantically valid expression. In other words, it should not contain anyeErrorExps in it. But, CTFE interpretation will cross over functions and may invoke a function that containsErrorStatementin its body. If that, the "CTFE failed because of previous errors" error is raised. -
Declaration
TctfeEmplaceExp(T : Expression, Args...)(Argsargs);Allocate an Expression in the ctfe region.
Parameters
Ttype of Expression to allocate
Argsargsarguments to Expression's constructor
Return Value
allocated Expression
-
Declaration
voidincArrayAllocs();