Re:C++17 constexpr everything, or as much as the compiler can
by Doxin on Friday December 29, 2017 @05:17AM
(#16028709)
Running code at compile time in D is not an automatic optimization. Only code in certain constructs are ran at compile time, for example function calls in variable declarations or static if statements. Generally it's not something you even need to think about. This runs foo() at compile time:
This runs foo() at runtime:
[ Parent
| on HN ]
There are no comments on this comment yet.