View source code
Display the source code in dmd/cli.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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 usinglocal clone.

Variable dmd.cli.Usage.previews

Returns all available previews

struct Usage
{
  // ...
  immutable(Usage.Feature[]) previews = [Feature("dip25", "useDIP25", "implement Sealed References DIP", "https://github.com/dlang/DIPs/blob/master/DIPs/archive/DIP25.md", true, true), Feature("dip1000", "useDIP1000", "implement Scoped Pointers DIP", "https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md", true, false), Feature("dip1008", "ehnogc", "implement @nogc Throwable DIP", "https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1008.md", true, false), Feature("dip1021", "useDIP1021", "implement Mutable Function Arguments DIP", "https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md", true, false), Feature("bitfields", "bitfields", "add C-like bitfields", "https://github.com/dlang/dlang.org/pull/3190", true, false), Feature("fieldwise", "fieldwise", "use fieldwise comparisons for struct equality", "https://dlang.org/changelog/2.085.0.html#no-cmpsb", true, false), Feature("fixAliasThis", "fixAliasThis", "when a symbol is resolved, check alias this scope before going to upper scopes", "https://github.com/dlang/dmd/pull/8885", true, false), Feature("intpromote", "fix16997", "fix integral promotions for unary + - ~ operators", "https://dlang.org/changelog/2.078.0.html#fix16997", false, true), Feature("dtorfields", "dtorFields", "destruct fields of partially constructed objects", "https://dlang.org/changelog/2.098.0.html#dtorfileds", false, false), Feature("rvaluerefparam", "rvalueRefParam", "enable rvalue arguments to ref parameters", "https://gist.github.com/andralex/e5405a5d773f07f73196c05f8339435a", true, false), Feature("nosharedaccess", "noSharedAccess", "disable access to shared memory objects", "https://dlang.org/spec/const3.html#shared", true, false), Feature("in", "previewIn", "`in` on parameters means `scope const [ref]` and accepts rvalues", "https://dlang.org/spec/function.html#in-params", true, false), Feature("inclusiveincontracts", "inclusiveInContracts", "'in' contracts of overridden methods must be a superset of parent contract", "https://dlang.org/changelog/2.095.0.html#inclusive-incontracts", true, false), Feature("shortenedMethods", "shortenedMethods", "allow use of => for methods and top-level functions in addition to lambdas", "https://dlang.org/spec/function.html#ShortenedFunctionBody", false, true), Feature("fixImmutableConv", "fixImmutableConv", "disallow `void[]` data from holding immutable data", "https://dlang.org/changelog/2.101.0.html#dmd.fix-immutable-conv, https://issues.dlang.org/show_bug.cgi?id=17148", true, false), Feature("systemVariables", "systemVariables", "disable access to variables marked '@system' from @safe code", "https://dlang.org/spec/attribute.html#system-variables", true, false)];
  // ...
}

Authors

Walter Bright

License

Boost License 1.0