std.compiler
Identify the compiler used and its various features.
Copyright
Copyright The D Language Foundation 2000 - 2011.
enum Vendor
Types 1
enumVendor
Master list of D compiler vendors.
unknown = 0Compiler vendor could not be detected
digitalMars = 1Digital Mars D (DMD)
gnu = 2GNU D Compiler (GDC)
llvm = 3LLVM D Compiler (LDC)
dotNET = 4D.NET
sdc = 5Snazzy D Compiler (SDC)
Variables 5
var
string name = __VENDOR__Vendor specific string naming the compiler, for example: "Digital Mars D".
var
uint version_major = __VERSION__ / 1000The vendor specific version number, as in version_major.version_minor
var
uint version_minor = __VERSION__ % 1000var
uint D_major = 2The version of the D Programming Language Specification supported by the compiler.
var
uint D_minor = 0