Arrays of structs

John Burton via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 27 03:39:50 PDT 2015


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...




More information about the Digitalmars-d-learn mailing list