当前位置:网站首页>GC is not used in D

GC is not used in D

2022-06-26 13:42:00 fqbqrr

original text

It's not necessary GC Use class . Just use malloc/free or std.experimental.allocator wait , Manual Distribute and release they .automem Of Smart pointer Library This is very useful :
automem
If you want to completely avoid D Runtime , You can't use " Ordinary " Of D class , however extern(C++) Classes can still work .
If you absolutely must use structure , You can use "alias this" To achieve inheritance :
Alias book

原网站

版权声明
本文为[fqbqrr]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261258239148.html