Island dynamic array initialization question

I know I can initialize a dynamic array like below:
var dims: array of int64_t := [1, 5, 12];

I am just curious - under the hood, is the following the under-the-hood compiler magic?

var dims: array of int64_t;
dims := new int64_t[3];
dims[0] := 1
dim[1] := 5
dim[2] := 12

@ck

Pretty much yes

1 Like