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, 8, 3); version (Posix) { version (DigitalMars) { } else version (LDC) { } else version (GNU) { } else { static assert (0, "Unsupported D compiler"); } } else { static assert (0, "Unsupported D compiler"); }