1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/+ obt - org generated file +/ struct Version { int major; int minor; int patch; } enum ver = Version(0, 27, 1); version (Posix) { version (DigitalMars) { } else version (LDC) { } else version (GNU) { } else { static assert (0, "Unsupported D compiler"); } } else { static assert (0, "Unsupported D compiler"); }