[your code here]
Menshikovk Konstantin
mensikovk17 at gmail.com
Fri Mar 26 18:31:46 UTC 2021
I think it's cute and illustrates a lot of D's features at
compile time.
void main()
{
static if (__DATE__[0..6] == "Dec 08")
{
pragma(msg, "Happy Birthday to You");
pragma(msg, "Happy Birthday to You");
pragma(msg, "Happy Birthday Dlang");
pragma(msg, "Happy Birthday to You\n");
pragma(msg, " D programming language is ",
mixin(__DATE__[7..11]) - 2001, " years old!");
}
}
More information about the Digitalmars-d
mailing list