mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
Estimated hours taken: 3 Branches: main Added support for progname and exit status in grade Java. compiler/mlds_to_java.m: Added code to maybe_write_main_driver/5 to store the main class's name and exit status in mercury.runtime.JavaInternal's static variables. Also, main() now calls java.lang.System.exit() instead of returning, since Java insists that main must have void return type. java/runtime/JavaInternal.java: Added static variables "progname" and "exit_status".