Shouldn't pureMalloc be @system instead of @trusted?

Nordlöw per.nordlow at gmail.com
Fri Mar 16 21:22:11 UTC 2018


Shouldn't `pureMalloc` at

https://dlang.org/library/core/memory/pure_malloc.html

be @system instead of @trusted?

Because it returns uninitialized memory just like

     T x = void;

does, which is not allowed in @safe code.


More information about the Digitalmars-d mailing list