Yeah. I just got some kind of a glitch.
Now i am curious about - is there some kind of garbage collector.
extern void object::Spider2()
{
int[] q;
q = qw();
message(q[2]);
}
public int[] qw()
{
int testarray[]={1,2,3,4,5};
return testarray;
}
If am i correct - with every call of function a brand new array will be created?
And last but one will stay in memory without link on it. - with means wasted memory?
Can you advise me about this things?
Now i am curious about - is there some kind of garbage collector.
extern void object::Spider2()
{
int[] q;
q = qw();
message(q[2]);
}
public int[] qw()
{
int testarray[]={1,2,3,4,5};
return testarray;
}
If am i correct - with every call of function a brand new array will be created?
And last but one will stay in memory without link on it. - with means wasted memory?
Can you advise me about this things?