On Thursday, 15 October 2020 at 01:22:54 UTC, Ali Çehreli wrote:
On 10/14/20 1:15 PM, Jack wrote:>> auto x = malloc(s)[0..s];> https://wiki.dlang.org/Memory_Management#Explicit_Class_Instance_AllocationNote that 'x' is passed to emplace() at that link and emplace() requires a slice. That's why the a slice is made from the pointer returned by malloc().Ali
make sense, thanks