Arrays of structs

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 27 04:12:40 PDT 2015


On Thursday, 27 August 2015 at 10:49:02 UTC, John Burton wrote:
> Thanks again for the updates. I've experimented some more and 
> believe I understand.
>
> 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

There's also std.container.array with deterministic memory usage 
not reliant on the GC, as an alternative to the built-in arrays.

http://dlang.org/phobos/std_container_array.html


More information about the Digitalmars-d-learn mailing list