W3cubDocs

/D

dmd.dinterpret

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
dinterpret.d
Documentation
https://dlang.org/phobos/dmd_dinterpret.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dinterpret.d
Expression ctfeInterpret(Expression e);

Entry point for CTFE. A compile-time result is required. Give an error if not possible.

e must be semantically valid expression. In other words, it should not contain any ErrorExps in it. But, CTFE interpretation will cross over functions and may invoke a function that contains ErrorStatement in its body. If that, the "CTFE failed because of previous errors" error is raised.

struct CompiledCtfeFunctionPimpl;

Typesafe PIMPL idiom so we can keep CompiledCtfeFunction private.

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_dinterpret.html