3 ms·
Here's a D program that only fails to compile if the last digit of the current number of seconds is 4: enum timestamp = __TIMESTAMP__; void main() { pragm
by bachmeier 5y ago
Here's a D program that only fails to compile if the last digit of the current number of seconds is 4:
enum timestamp = __TIMESTAMP__;
void main() {
pragma(msg, timestamp[$-6..$-5]);
auto a = 4;
static if(timestamp[$-6..$-5] == "4") {
auto a = 7;
}
}