[m-rev.] for review: Added support for progname and exit status in grade Java.

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Dec 22 23:55:48 AEDT 2003


On 22-Dec-2003, James Goddard <goddardjames at yahoo.com> wrote:
> 
> 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".

That looks good, thanks.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list