D Medium · Lesson 2

Compile-time function evaluation

CTFE: run ordinary functions at compile time through enum, static, and template arguments.

Lessons · D Medium · Lesson 2 of 10

Compile-time function evaluation

CTFE: run ordinary functions at compile time through enum, static, and template arguments.

Illustration for D
CTFE: run ordinary functions at compile time through enum, static, and template arguments.