the array which will be resized
number of items to be allocated in the array
whether to init the allocated items to their default values or not
int[] foo; foo.alloc(20);
Remarks: The array must be null and empty for this function to succeed. The rationale behind this is that the coder should state his decision clearly. This will help and has already helped to spot many intricate bugs.
Allocate the array using malloc