std.compiler

Identify the compiler used and its various features.

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

varstring name = __VENDOR__

Vendor specific string naming the compiler, for example: "Digital Mars D".

varuint version_major = __VERSION__ / 1000

The vendor specific version number, as in version_major.version_minor

varuint version_minor = __VERSION__ % 1000
varuint D_major = 2

The version of the D Programming Language Specification supported by the compiler.

varuint D_minor = 0