Initializing Vectors with fixed length

Initializing Vectors with fixed length as follows:

myVector.fixed = false;
myVector.length = 0;
myVector.length = nLength;
myVector.fixed = true;

長さを定めたVectorインスタンスを、上記のように初期化した。