Best properly way to destroy a 2 dimensional array?

Jonathan Villa via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 8 10:00:55 PDT 2016


On Friday, 8 April 2016 at 15:21:50 UTC, Steven Schveighoffer 
wrote:
> On 4/8/16 11:08 AM, Jonathan Villa wrote:
>> On Thursday, 7 April 2016 at 16:13:59 UTC, Steven 
>> Schveighoffer wrote:
> Your best bet is to free the memory itself if it's possible.
>
> import core.memory: GC;
> GC.free(combs.ptr);
>
> For more info on how GC works: dlang.org/spec/garbage.html
>
> -Steve

Thank you very much! I think this is the answer I was looking for 
C:

JV


More information about the Digitalmars-d-learn mailing list