On Saturday, 15 May 2021 at 18:26:08 UTC, Adam D. Ruppe wrote:
On Saturday, 15 May 2021 at 17:55:17 UTC, Alain De Vos wrote:
Feature request, a function old which does the opposite of new, allowing deterministic,real-time behavior and memory conservation.

You're best off doing malloc+free if you want complete control though.

You can use the heapAlloc / heapFree pair:


https://wiki.dlang.org/Memory_Management#Explicit_Class_Instance_Allocation


Which I added to my package here :-)

https://code.dlang.org/packages/jdiutil

https://github.com/mingwugmail/jdiutil/blob/master/source/jdiutil/memory.d

Reply via email to