Jonathan Blow demo #2
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 12 02:47:17 PST 2014
> OK, I think that it will be enough to add a Phobos function
> like this (what's the right Phobos module to put it?) (why
> isn't this @trusted?) (why isn't this returning a T*?):
>
>
>> ref T uninitializedAlloc(T)() @system pure nothrow
>> {
>> return *cast(T*)GC.malloc(T.sizeof);
>> }
https://issues.dlang.org/show_bug.cgi?id=13859
Bye,
bearophile
More information about the Digitalmars-d
mailing list