https://issues.dlang.org/show_bug.cgi?id=22723

Basile-z <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Basile-z <[email protected]> ---
Isn't the issue more like a request to have a way to allocate the slice payload
on the heap ? Maybe a druntime template should be added for that rare usage,
e.g

```
auto newHeapArray(T)()
{
    import core.memory : GC;

    alias RT = T[];
    return cast(RT*) GC.malloc(RT.sizeof, 0, typeid(T[]));
}  
```

--

Reply via email to