摘要: 在默认情况下,D语言中的数组是会进行初始化,如果要它不初始化,则可以使用以下语法: char[1024] bufff = void; 阅读全文
posted @ 2016-08-20 17:51 honan 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 在D语言中调用C++中的std::string , 需要使用 extern(C++,class)语法,该语法在DMD2.071版本中不支持,需要使用ldc1.1。 下载地址:https://github.com/ldc-developers/ldc/releases/ 。 下载ldc2-1.1.0-alpha1-win32-msvc.zip 使用LDC2-1.1时,必须... 阅读全文
posted @ 2016-08-20 15:54 honan 阅读(706) 评论(0) 推荐(0) 编辑
摘要: http://crashrpt.sourceforge.net/docs/html/index.html http://stackoverflow.com/questions/19656946/why-setunhandledexceptionfilter-cannot-capture-some-exception-but-addvectoredexc 使用SetUnha... 阅读全文
posted @ 2016-08-20 10:43 honan 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 我们在使用try{}catch(Throwtable e){}时,输出堆栈信息时有符号文件才能知道错误在哪里发生。 新建工程,添加测试代码 import std.stdio; import std.string; void test_error() { throw new Exception("test"); } int main(string[] argv) { ... 阅读全文
posted @ 2016-08-20 10:38 honan 阅读(213) 评论(0) 推荐(0) 编辑