Advertisement

an question about CScriptArray

Started by October 02, 2010 03:15 AM
6 comments, last by WitchLord 14 years, 1 month ago
in script, i wirte:

class test : MyInfe
{
int a;
int b;
array<any> temp;
test( int a_a, int a_b ){ this.a = a_a; this.b = a_b; temp.resize(2); temp[0].store(this.a); temp[1].store(this.b); }
array<any>@ ReturnTemp( ){ return @temp; }
}

but build error.

array<any>@ cannot to be used as return type?

thansk all.

What are the compiler messages you get? You did register the message callback function with SetMessageCallback, didn't you?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Greate WitchLord,
Err:Expected method or property.
error happened in "array<any>@ ReturnTemp( ){ return @temp; }"
This looks like a bug in AS. I'll take a closer look at it.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thanks for reporting this. I've fixed the bug in SVN revision 709.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Man, I wish I could debug at a quarter of your speed. You always manage to add a revision before I can even read the problem!
-Jawshttp://uploading.com/files/eff2c24d/TGEpre.zip/
:)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement