|
|
|
|
|
by d110af5ccf
1778 days ago
|
|
> D compile time evaluation. How is it better than macros/templates? CTFE isn't better than templates, it's a completely different tool. CTFE computes a result at compile time as though you had written a literal in the source code. Templates generate blocks of specialized code on the fly based on various parameters (typically types). They solve different problems. |
|
What does D do, then?