如果我在DMD中调用new(对于数组和/或对象)会发生什么?
例如 int[] data = new int[number]; 或 new MyObject(); ?
int[] data = new int[number];
new MyObject();
我在哪里可以找到背景中发生的事物的来源?
创建对象的实现在Druntime中,特别是在 rt.lifetime 中 .
rt.lifetime
使用_d_newclass完成类创建,并使用the _d_newarray functions完成数组创建 .
1 回答
创建对象的实现在Druntime中,特别是在
rt.lifetime
中 .使用_d_newclass完成类创建,并使用the _d_newarray functions完成数组创建 .