basic: DEFUN can call other DEFUN (different from currying it, currying would return a function, but calling would return a value)

This commit is contained in:
minjaesong
2020-12-27 12:36:48 +09:00
parent 83a53499bc
commit 29e08923cc
3 changed files with 50 additions and 18 deletions

View File

@@ -27,15 +27,15 @@ if (r == 0){
let g=com.pullMessage(0);
let execAppPrg = eval("var _appStub=function(exec_args){"+g+"};_appStub;"); // making 'exec_args' a app-level global
execAppPrg();
return 0;
}
catch (e) {
printerrln("\nApp Execution Error: "+(e.stack || e));
return 1;
}
}
else
printerrln("I/O Error");
}
else
printerrln("No bootable medium found.");
printerrln("No bootable medium found.");
println("CPU halted");