The code below is just about as trival an example as I could come up with, but it seems that perhaps some variables are not getting scoped correctly when using the call command?
Shows Output:
Stack Trace attached. EmptyStackException
Code:
int funcB(int[String] l)
{
print("Start B");
int[String] m;
m["funcC"]=1;
int[int] r;
int i=0;
foreach v in l
{
i+=1;
r[i]=call int v(m);
}
print("End B");
return 1;
}
int funcC(int[String] l)
{
print("Start C "+l.Count());
foreach v in l
{
print(v);
}
print("End C");
return 5;
}
void main()
{
int[String] list;
list["funcB"]=1;
Print("Start");
funcB(list);
print("Done");
}
Shows Output:
Start
Start B
Start B
Start C 1
funcC
End C
End B
Unexpected error, debug log printed.
Script execution aborted
Stack Trace attached. EmptyStackException