3 ms·
Lack of a preprocessor does not imply lack of conditional compilation: http://dlang.org/version.html http://dlang.org/version.html The constructs are simply b
by CyberShadow 11y ago
Lack of a preprocessor does not imply lack of conditional compilation:
http://dlang.org/version.html http://dlang.org/version.html
The constructs are simply built into the language.
This has considerable benefits: you can use e.g. `static if` to enable/disable code based on conditions which refer to constants declared in the program (there is no longer a separate namespace for preprocessor defines and program constants), and with CTFE, you can use any expression that can be evaluated during compilation.
- Zardoz84 11y agoThe language it's itself his own preprocesor, thanks to CTFE. I think that it is what I love more of D.