百度智能云 云生態狂歡季 熱門云產品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 entryDlang 官方完整的發行細節說明:
https://dlang.org/changelog/2.085.0.html
總結
以上是生活随笔為你收集整理的D语言/dlang 2.085.0 发布,GC、Objective-C 混编增强的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。