![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
D语言
zuroc
这个作者很懒,什么都没留下…
展开
-
DMD的诡异"Previous Definition Different"错误
我用poseidon新建一个全新工程 编译参数加入-g(就是加入调试信息), 试一试如下代码,就会有如"Previous Definition Different" 代码: import std.c.windows.windows, std.c.windows.winsock; static this(){ WSADATA wd; } int main (){...2007-12-16 16:43:37 · 505 阅读 · 0 评论 -
<<Learn to Tango with D>>下载
Apress.Learn.to.Tango.with.D.Jan.2008.pdf Learn to Tango with D is a book about the D programming language and the Tango software library. It became available as an eBook 7th of January 2008, where...2008-01-15 18:49:26 · 96 阅读 · 0 评论 -
D语言备忘
学习的参照资料 http://www.d-programming-language-china.org/ 对应版本 DMD 1.013(2007年4月12日) 0. 数组切片 char[][] args=[ "main.exe", "zsp", "earth" ]; args[1..$]) 1. 可以给引入模块一个本地名称 import ...2008-01-15 18:51:45 · 132 阅读 · 0 评论 -
d语言写的一个简单的sql生成器
简陋的封装了一些单表操作 源代码 [code="d"]template eval( A... ) { const typeof(A[0]) eval = A[0]; } char[] escape(char[] c){ return "\""~c~"\""; } char[] column_def(char[] temp){ return "ty...2008-01-16 17:07:29 · 144 阅读 · 0 评论 -
D语言的两个日期函数
[code] //日期格式为数字 如 20080901 //By zsp007@gmail.com ///验证是否是有效日期 bool date_validate(T)(T date) { static T daysOfMonth[] = [0,31,28,31,30,31,30,31,31,30,31,30,31]; T monthDay = date % 10...2008-01-17 14:01:06 · 118 阅读 · 0 评论