D语言/DLang 2.088.0 发布,增强与 C++ 交互操作

栏目: 软件资讯 · 发布时间: 5年前

内容简介:D 语言近些年一直在加紧脚步的开发迭代,改进语言本身的特性,增强易用性和其他语言的互通性,前面几个版本主要是针对 macOS 平台的 Objective-C 进行打通交互性,而一直努力的还有 C++ 标准库的打通,本次版本也...

D 语言近些年一直在加紧脚步的开发迭代,改进语言本身的特性,增强易用性和其他语言的互通性,前面几个版本主要是针对 macOS 平台的 Objective-C 进行打通交互性,而一直努力的还有 C++ 标准库的打通,本次版本也对 C++ 的 std::string 和 std::vector 进行打通,进一步改善语言之间的交互性。

DLang 2.088.0 这个版本包含 27 个主要更改和 58 个已修复的Bugzilla问题。非常感谢 58 位贡献者使 2.088.0 成为可能。

编译器的变化

  1. D1 operator overloads have been deprecated.
  2. Deprecate allowing a constructor declaration in a static block
  3. deprecated now applies to alias this as well
  4. Double initialization of immutable fields inside constructor is now obsolete
  5. add __traits(getLocation, symbol)
  6. Suppress the "read-modify-write" error if type is a struct or a class
  7. Postblit and destructors are no longer called on members of anonymous unions.

运行时变化

  1. core.atomic : msync has been removed
  2. Added overloads for core.atomic.cas which don't discard their result.
  3. Added core.atomic.atomicExchange.
  4. Non-POSIX CLOCK enum members have been removed from core.sys.posix.time
  5. The druntime option callStructDtorsDuringGC has been deprecated.
  6. core.sys.posix.dlfcn : dladdr, dlvsym, Dl_info have been removed
  7. core.exception: Remove onHiddenFuncError / HiddenFuncError
  8. core.exception : setAssertHandler has been removed
  9. core.thread : Fiber.call(bool) has been removed
  10. Module core.sys.linux.sys.netinet.tcp has been removed
  11. core.runtime : Runtime.initialize, Runtime.terminate functions taking ExceptionHandler have been removed
  12. Added core.stdcpp.string.
  13. Added core.stdcpp.vector.

标准库变化

  1. std.array.Appender and RefAppender: use .opSlice() instead of data()
  2. ErrnoException.errno is now nothrow pure @nogc @safe
  3. Nullable alias get this has been deprecated
  4. Added the std.file.getAvailableDiskSpace functionality.
  5. Allow std.json to overlook trailing comma

安装器变化

  1. Bundled libcurl is now built with DONT_USE_RECV_BEFORE_SEND_WORKAROUND

Dub 包管理器变化

  1. Support for dub global settings file at the root package level

您也可以查看完整的 changelog 内容。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C++ How to Program (5th Edition) (How to Program)

C++ How to Program (5th Edition) (How to Program)

Harvey & Paul) Deitel & Associates / Prentice Hall / 2005-01-05 / USD 98.00

With over 250,000 sold, Harvey and Paul Deitel's C++ How to Program is the world's best-selling introduction to C++ programming. Now, this classic has been thoroughly updated! The Deitels' groundbreak......一起来看看 《C++ How to Program (5th Edition) (How to Program)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试