Nope that doesnt work either:

var my_array_size = 100;
var* my_array;

function my_function_startup()
{ var count;
// allocate the array
my_array = (var*)malloc(sizeof(var)*my_array_size);
// initialize all array indexs to 0.
count = 0;
while(count<my_array_size)
{ my_array[count] = 0;
count += 1;
}
}

I still get the same compile error