CTFE

The factorial example is simple, but in a lot of cases you’d prefer to be able to do a calculation both at compile and run time. For this reason, D allows compile-time function execution. Any variable what is created with enum or static is determined at compile-time.