const Vec2 = [2]f64;
const Level = struct { points: []Vec2 };
var l = try allocator.create(Level);
defer allocator.destroy(l);
std.debug.print("points: {d}\n", .{l.points.len});
output:
points: 12297829382473034410
Is l.points.len just garbage data, or did the allocator really allocate enough memory to hold 12297829382473034410 items? 😮