I create a CScriptArray in my code like this:
asIObjectType* pType = m_pScriptEngine->GetObjectTypeByName( "string" );
CScriptArray* pArray = CScriptArray::Create( pType );
The array accepts the type without checking if it's actually an array type, or if it even has a valid subtype.
The string stored in the array behaves as it should because i set the contents in C++, and is not directly accessed by script code,
however its destructor is not called, which is to be expected.
Should there be a script exception set and/or null pointer returned if the array type is invalid, or should i simply be more cautious about how i instantiate arrays?