D Medium · Lesson 2
Compile-time function evaluation
CTFE: run ordinary functions at compile time through enum, static, and template arguments.
D Medium · Lesson 2
CTFE: run ordinary functions at compile time through enum, static, and template arguments.