Cleaning/Releasing large arrays from memory

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 07:54:21 PDT 2017


rikki cattermole wrote:

> Tell it to free[0] the array directly.
>
> ```D
> T[] array;
>
> GC.free(array.ptr);

or just `delete arr;`. it is marked as "deprecated" in changelog, but who 
cares? it works.


More information about the Digitalmars-d-learn mailing list