On Friday, 30 May 2014 at 04:21:18 UTC, Jesse Phillips wrote:


1. http://he-the-great.livejournal.com/52333.html

Note that in the following code:
    import core.memory : GC;
    int* pxprime = cast(int*)GC.malloc(int.sizeof);
    version(none) assert(pxprime); // possibly zero

GC.malloc currently doesn't initialize the memory if NO_SCAN is specified as attribute. Also, I don't understand why half of your asserts have version(none) (it's distracting.) Also note that you're not dereferencing pxprime, I'm not sure if its intentional.

Reply via email to