i already posted on this on stackoverflow, but didn't get any reply there.
Here my original text:
i am trying to get an angelscript test running, however, calling RegisterScriptArray() fails
System function (1, 39) : ERR : Expected '<end of file>' (0, 0) : ERR : Failed in call to function 'RegisterObjectBehaviour' with 'array' and 'array<T>@ f(int&in type, int&in list) {repeat T}' (Code: -10)
the code is:
engine = asCreateScriptEngine(ANGELSCRIPT_VERSION); // message callback int r = engine->SetMessageCallback(asFUNCTION(as_messageCallback), 0, asCALL_CDECL); assert( r >= 0 ); RegisterStdString(engine); RegisterScriptArray(engine, false); r = engine->RegisterGlobalFunction("void print(const string &in)", asFUNCTION(as_print), asCALL_CDECL); assert( r >= 0 );
What should i do? If i comment out the call it works, but thats obviously not what i want to archieve as i want arrays
So yeah, maybe i get an answer here. Maybe its actually a bug, i don't know