Use these routines to obtain a vector whose length is unknown.
Arrays will be allocated as needed to read the data from the Lua script with these routines. A maximal length has to be specified to limit the allocated memory by these routines (and make the interfaces distinguishable).
This routine obtains a vectorial quantity with variable length from a Lua table as a whole.
Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.
Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.
Maximal length to allocate for the vector.
Name of the variable (vector) to read.
Position of the (vector) to read.
A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.