内容简介:近些年以来 dlang 版本发布节奏稳健,编译器更新越来越实用,这个版本附带了上下文感知断言消息、较低的 GC 内存使用方式、精确的 GC、对链接自定义 GC 的支持、大量的 Objective-C 混编改进,以及对 DUB 的工具链...
近些年以来 dlang 版本发布节奏稳健,编译器更新越来越实用,这个版本附带了上下文感知断言消息、较低的 GC 内存使用方式、精确的 GC、对链接自定义 GC 的支持、大量的 Objective-C 混编改进,以及对 DUB 的 工具 链需求。这次发布也结束了对 OSX-32 的官方支持。
DMD 编译器改进:
- Add support for Objective-C classes
- Add support for Objective-C instance variable
- Add support for Objective-C super calls
- Deprecate Objective-C interfaces
- Context-aware assertion error messages
- Avoid calling the struct constructor from const-casts
- dmd now supports expressive diagnostic error messages with -verrors=context
- memcmp() compares are no longer performed for struct equality tests, memberwise comparisons are done instead, per the spec
- OSX 32-bit is no longer supported
- -preview and -revert command line switches have been introduced
- Transition to C++11 character types
Runtime 运行时改进:
- Added GC.profileStats() to core.memory
- Added core.stdcpp.new_
- Added core.sys.linux.sched.CPU_COUNT.
- Added core.sys.linux.sched.CPU_ISSET.
- Moved std.conv.emplace, std.algorithm.mutation.move, std.algorithm.mutation.moveEmplace, and std.functional.forward to core/lifetime.d
- GC cleanup can now be configured as a DRT GC option
- A garbage collector with precise heap scanning can now be selected
- GC.realloc is now more consistent and robust
- User supplied garbage collectors can now be linked with the runtime
- Added core.stdcpp.allocator
- char/wchar fields in most D runtime (core.* and rt.*) structs are now zero-initialized
包管理器 dub 改进:
- dub fetch now supports
@ as a shortcut - extraDependencyFiles attribute added
- File system supplier enabled
- toolchainRequirements recipe entry
Dlang 官方完整的发行细节说明:
https://dlang.org/changelog/2.085.0.html
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- D语言/dlang 2.085.0 发布,GC、Objective-C 混编增强
- Swift学习之与OC混编
- iOS Native混编Flutter交互实践
- Flutter 开发 (2)优雅的 Flutter 组件化 混编方案
- OC和Swift混编(一)——OC与Swift相互调用
- OC与Swift混编项目迁移到Swift4.2小记
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Java Servlet & JSP Cookbook
Bruce W. Perry / O'Reilly Media / 2003-12-1 / USD 49.99
With literally hundreds of examples and thousands of lines of code, the Java Servlet and JSP Cookbook yields tips and techniques that any Java web developer who uses JavaServer Pages or servlets will ......一起来看看 《Java Servlet & JSP Cookbook》 这本书的介绍吧!