Am 02.02.2013 18:40, schrieb Namespace:
> No one said that this is a problem, or? (;
> But why should I generate an array with size 4 if an append of me resize
> it to 5?
That's what reserve is for.

auto bla = new ubate[4];
bla[3] = 1; // valid


ubyte[] bla;
bla.reserve(4);
bla[3] = 1; // invalid

Reply via email to