2 ms·
D doesn't run code at compile time as an optimisation. It only runs code at compile time in certain constructs like variable declarations or static if statement
by Doxin 9y ago
D doesn't run code at compile time as an optimisation. It only runs code at compile time in certain constructs like variable declarations or static if statements. If you need your code to run at runtime simply stick it in your code where it needs to run.