an question about CScriptArray
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.
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?
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement