On Thursday, 27 August 2015 at 10:49:02 UTC, John Burton wrote:

To be honest I'm finding it very hard to find the right idioms in D for safe and efficient programming when I'm so used to C++ / RAII everywhere. I'll adapt though :P

This is true for every new language you learn. You first stick to the idioms you already know before getting the right style. My first Python code looked like C and my first D code looked like Java.

BTW, if you need a growable array with deterministic destruction, you should have a look at std.container.array.Array(T), which is equivalent to a shared_ptr<vector<T>>.

Reply via email to