Closed adray closed 2 weeks ago
Pop discard errorously pops the 5 which is pushed as part of the + 5
var foo = -10;
Print(foo);
function Test1() {
Print("Test");
return 5;
}
function Test2(x) {
Print("Foo: " + x);
}
var x = 2 + Test1();
Print(x);
Test2(Test1() + 5);
Pop discard instruction isn't a nice solution, additionally SunScript doesn't seem to handle passing return value into another function in all cases.