Re: Question about wrapping raw C pointers from D
On 05/29/2014 09:38 PM, Rusty D. Shackleford wrote: Hi, in C++ I can use smart pointers to wrap raw pointers with custom deleter to automatically manage C resources. Is there anything like this in D? 1) Structs provide RAII: struct S { // ... ~this() { // cleanup } }
Question about wrapping raw C pointers from D
Hi, in C++ I can use smart pointers to wrap raw pointers with custom deleter to automatically manage C resources. Is there anything like this in D?