Allocate a list a containing n elements (n assumed to be too large for a stack) that is automatically deallocated when the program exits the scope it is declared in.
let a = vec![0; n];
integer, dimension(:), allocatable :: a allocate (a(n))
a := make([]T, n)
var a: array of some_type; ... SetLength(a, n); ...
{ my @a = (undef) x $n; # scope ends at closing brace }
def func(): a = [0] * n # local variable automatically deallocated at end of function return
a = Array.new(n)
No security, no password. Other people might choose the same nickname.