|
|
|
|
|
by gallier2
1321 days ago
|
|
<i>D will always evaluate normal "if's" at runtime even if they are comptime-known, it will not do this automatically for you.</i> WRONG. if in a CTFE function works without problems.
static if has nothing to do with CTFE. static if is conceptually a beefed up proper #ifdef/#endif. The biggest issue D has is all the FUD and misconceptions that are propagated about it. |
|