随笔分类 -  析构器

摘要:原文 import std.stdio: writeln; struct MyObject { int id; this(int id) @nogc { this.id = id; } ~this() { writeln("Object destructor ..."); } } void main 阅读全文
posted @ 2022-10-05 13:15 zjh6 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示