Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# std.compiler

Identify the compiler used and its various features.
License:
Boost License 1.0.
Authors:
Walter Bright, Alex Rønne Petersen

Source std/compiler.d

immutable string `name`;
  Vendor specific string naming the compiler, for example: "Digital Mars D".
enum `Vendor`: int;
  Master list of D compiler vendors.
  `unknown`
    Compiler vendor could not be detected
  `digitalMars`
    Digital Mars D (DMD)
  `gnu`
    GNU D Compiler (GDC)
  `llvm`
    LLVM D Compiler (LDC)
  `dotNET`
    D.NET
  `sdc`
    Snazzy D Compiler (SDC)
immutable Vendor `vendor`;
  Which vendor produced this compiler.
immutable uint `version_major`;
immutable uint `version_minor`;
  The vendor specific version number, as in version_major.version_minor
immutable uint `D_major`;
  The version of the D Programming Language Specification supported by the compiler.

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Fri Sep 1 19:45:45 2023