struct destructor
mw
mingwu at gmail.com
Sat May 15 21:02:27 UTC 2021
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
More information about the Digitalmars-d-learn
mailing list