D语言/dlang 2.084.0 发布,编译时和运行时增强

  

dlang 2.084.0 带来了 21 个主要更改和 100 个修复的 Bugzilla 问题。非常感谢 53 位贡献者的参与完成了 2.084.0 这个大版本。

编译器改进

  1. Aliases can be created directly from a __trait.

  2. Added -check switch to turn on and off each category of runtime checks.

  3. Add -checkaction=D|C|halt compiler switch.

  4. -color and -color=on will now always output colorized console output

  5. The code generated by mixin statements can now be saved with -mixin

  6. Deprecate invalid binary literals

  7. Deprecated extern(Pascal) linkage

  8. The deprecation phase for fully qualified names that bypassed private imports is finished

  9. Templates are now mangled correctly on POSIX

  10. Added __c_wchar_t as a correct mangling type for C's wchar_t

运行时改进

  1. Added core.stdcpp.array.

  2. Add D header file core.sys.darwin.crt_externs for libc/crt_externs.h on Darwin.

  3. Added initialize template argument to object.destroy().

  4. Added core.stdcpp.string_view.

Phobos 标准库改进

  1. Add overload std.random.unpredictableSeed!UIntType

包管理工具 dub 改进

  1. Add Command

  2. dub now supports $DUB variable

  3. Pre/Post run commands added

  4. Shebang without .d extension

  5. Sort JSON

  6. Added experimental feature to improve build cache efficiency

猜你喜欢

转载自www.oschina.net/news/103795/dlang-2-084-0-released