当前位置:网站首页>Simple prohibition of garbage collection in d

Simple prohibition of garbage collection in d

2022-08-09 20:16:00 fqbqrr

Original

{import core.memory: GC;GC.disable();scope(exit) GC.enable();foreach (...)// Hot code.}void load_assets(){import core.memory: GC;// Assign, load, etc.GC.collect();}

Now, new attribute is added to the core.attribute module instead of being available globally, so if you want to add @GC(...)syntax, also need to be imported.

原网站

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