3 ms·
C++ doesn't implement the D features right. For example C++20 has constexpr, consteval, constinit, for a less powerful equivalent of D's CTFE. D use no syntax
by p0nce 6y ago
C++ doesn't implement the D features right.
For example C++20 has constexpr, consteval, constinit, for a less powerful equivalent of D's CTFE.
D use no syntax for this. Things are evaluated in CTFE when they can. The rules are simple, and you can ignore them for the first few years. It's because CTFE is considered a normal thing in D.