View difference between Paste ID: AEXWA4hE and pJPA7Kmw
SHOW: | | - or go back to the newest paste.
1
using Standard;
2-
    Arena1 := Standard.Memory.Arena();
2+
using Memory;
3-
    v1 := Standard.Containers.Vector(int, Standard.Memory.ArenaAllocator)(alloc := arena1);
3+
using Containers;
4
5-
        Arena2 := Standard.Memory.Arena();
5+
6-
        v2 = Standard.Containers.Vector(int, Standard.Memory.ArenaAllocator)(alloc := arena2);
6+
    Arena1 := Arena();
7
    v1 := Vector(int, ArenaAllocator)(alloc := arena1);
8
    {
9
        Arena2 := Arena();
10
        v2 = Vector(int, ArenaAllocator)(alloc := arena2);
11
        // fill v2 here
12
        v1 = v2;
13
    }
14
    // now what?
15
}