Thoughts from newcommer

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 16 15:18:51 PDT 2017


On Sunday, 16 April 2017 at 18:36:30 UTC, Jerry wrote:
> I wouldn't really call them RAII containers if they aren't @nogc

Moving the goal posts again. Even still,

void main() @nogc
{
     Array!int ai;
     ai ~= 1;
     assert(ai.front == 1);

     ai.reserve(10);
     assert(ai.capacity == 10);

     static immutable arr = [1, 2, 3];
     ai.insertBack(arr);
}


More information about the Digitalmars-d mailing list