Pointer to std.container.Array data for C library

Oleg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 28 11:50:32 PDT 2015


On Friday, 28 August 2015 at 18:46:23 UTC, Oleg wrote:

> I found solution. I call length instead of reserve. It calls 
> ensureInitialized and everything works fine. By default, Array 
> won't initialize store.

Oh, reserve calls it too. My mistake.
I found the problem, that's because I passed an empty Array (like 
Array!int.init).





More information about the Digitalmars-d-learn mailing list