失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > D语言/dlang 2.085.0 发布 GC Objective-C 混编增强

D语言/dlang 2.085.0 发布 GC Objective-C 混编增强

时间:2024-06-08 15:40:58

相关推荐

D语言/dlang 2.085.0 发布 GC Objective-C 混编增强

百度智能云 云生态狂欢季 热门云产品1折起>>>

近些年以来 dlang 版本发布节奏稳健,编译器更新越来越实用,这个版本附带了上下文感知断言消息、较低的 GC 内存使用方式、精确的 GC、对链接自定义 GC 的支持、大量的 Objective-C 混编改进,以及对 DUB 的工具链需求。这次发布也结束了对 OSX-32 的官方支持。

DMD 编译器改进:

Add support for Objective-C classesAdd support for Objective-C instance variableAdd support for Objective-C super callsDeprecate Objective-C interfacesContext-aware assertion error messagesAvoid calling the struct constructor from const-castsdmd now supports expressive diagnostic error messages with -verrors=contextmemcmp() compares are no longer performed for struct equality tests, memberwise comparisons are done instead, per the specOSX 32-bit is no longer supported-preview and -revert command line switches have been introducedTransition to C++11 character types

Runtime 运行时改进:

Added GC.profileStats() to core.memoryAdded 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.dGC cleanup can now be configured as a DRT GC optionA garbage collector with precise heap scanning can now be selectedGC.realloc is now more consistent and robustUser supplied garbage collectors can now be linked with the runtimeAdded core.stdcpp.allocatorchar/wchar fields in most D runtime (core.* and rt.*) structs are now zero-initialized

包管理器 dub 改进:

dub fetch now supports <package>@<version> as a shortcutextraDependencyFiles attribute addedFile system supplier enabledtoolchainRequirements recipe entry

Dlang 官方完整的发行细节说明:

/changelog/2.085.0.html

如果觉得《D语言/dlang 2.085.0 发布 GC Objective-C 混编增强》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。