上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 259 下一页
摘要: 来吧,让我们扯淡一下垃圾一般的win11吧. 我现在打开目录,创建文件,都是用vim搞的,windows自带的,都是垃圾,打开就崩溃,连最基础的功能都搞不好! 垃圾一般的控制面板!连个快捷键都用不了! 后台不知道什么的程序,改我输入法.我每次都要手动改回来! 最近,每次开机后,都给你隐藏扩展名,我每 阅读全文
posted @ 2022-10-19 09:15 zjh6 阅读(79) 评论(0) 推荐(0)
摘要: 运行时更改 添加了avx512f检测到core.cpuid 已添加core.cpuid.avx512f特征标志,来允许在具有512位向量支持的CPU上运行时检测. 删--DRT-oncycle=deprecate 参考 帮助迁移,模块构造器的旧的易错循环检查器.现在与--DRT-oncycle=ab 阅读全文
posted @ 2022-10-18 15:40 zjh6 阅读(21) 评论(0) 推荐(0)
摘要: 原文 都是编译器更改.剩下的略了. 添加位域到D 1链接,2链接 struct B { int x:3, y:2; } static assert(B.sizeof == 4); int vaporator(B b) { b.x = 4; b.y = 2; return b.x + b.y; // 阅读全文
posted @ 2022-10-18 11:54 zjh6 阅读(14) 评论(0) 推荐(0)
摘要: D的输出区间 原文 import std.stdio; import std.range; void main() { int[] arr = [1, 2, 3, 4, 5]; auto s = arr; writeln(s); // [1, 2, 3, 4, 5] s.put(100); // 无 阅读全文
posted @ 2022-10-18 10:12 zjh6 阅读(25) 评论(0) 推荐(0)
摘要: 自动柯里化 f(a,b,c)按f(a)(b)(c)调用. template autocurry(alias what) { import std.traits; static if(Parameters!what.length) auto autocurry(Parameters!what[0] a 阅读全文
posted @ 2022-10-17 19:36 zjh6 阅读(27) 评论(0) 推荐(0)
摘要: 反射示例 import std.stdio; import std.conv; import std.traits; class MyClass { void myMethod() {} int anotherMethod(int a) { return a; } // 运行时桥函数,技巧是编译时反 阅读全文
posted @ 2022-10-17 17:16 zjh6 阅读(19) 评论(0) 推荐(0)
摘要: 原文 public abstract class GlobalTradeItemNumber { // 可仅return _digits.length public abstract @property size_t length(); 代码: public /* //该行是错的. //GTIN14 阅读全文
posted @ 2022-10-17 14:26 zjh6 阅读(31) 评论(0) 推荐(0)
摘要: 枚举当索引 enum Foo { one, two } struct struct_t {} struct array { static private struct_t[Foo.max + 1] content; static struct_t opIndex(Foo idx) { return 阅读全文
posted @ 2022-10-17 10:04 zjh6 阅读(10) 评论(0) 推荐(0)
摘要: 原文 链接 module example; import std.stdio; import emu6502; void main() { ubyte[0x10000] memory; ubyte[] code = [ 0xA2, 0x00, // lda #0 // 循环: 0xBD, 0x0E, 阅读全文
posted @ 2022-10-17 09:18 zjh6 阅读(25) 评论(0) 推荐(0)
摘要: 只运行一次 int sumN(int n)() pure { int result = 0; for (int i = 0; i<=n; i++) result += i; return result; } void main() { enum sumMany = sumN!2000000; enu 阅读全文
posted @ 2022-10-16 21:53 zjh6 阅读(76) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 259 下一页