Heap allocate structs and arrays

This commit is contained in:
nub31
2025-02-01 16:29:43 +01:00
parent 8c21483f74
commit e7d1801abc
2 changed files with 50 additions and 17 deletions

View File

@@ -18,6 +18,13 @@ func main() {
println(x.some_struct.some_int);
println(x.some_struct.some_string);
let x = new Array<String>(23);
x[23] = "test";
println(x[22]);
println(arr_size(x));
}
struct Test {