Ok that's great thank you.

It's quite hard trying to get a proper understanding of memory allocation in D after years of C++ / RAII / unique_ptr / shared_ptr . I understand the details of course but it's going to take a while to really know it.

Is there any way to explicitly free a dynamic array when I am done with it? (I'm more interested in the contained items destructors being called than in the memory / gc aspects)

I fear I'm trying to write C++ in D and need to get my mind around different ways to do things...


Reply via email to