4 ms·
If you want to allocate an object on the stack, then use std.conv : emplace and alloca. This(https://wiki.dlang.org/Memory_Management#Allocating_Class_Instance
by mhh__ 9y ago
If you want to allocate an object on the stack, then use std.conv : emplace and alloca.
This(https://wiki.dlang.org/Memory_Management#Allocating_Class_Instances_On_The_Stack https://wiki.dlang.org/Memory_Management#Allocating_Class_In...) method also exists but is on the road to deprecation