View mode: basic / threaded / horizontal-split · Log in · Help
October 25, 2008
how to terminate a program
how to terminate the program in the middle of execution, is there any command such as halt,exit? since i dont use exception for error handling.
October 25, 2008
Re: how to terminate a program
== Quote from james (james@google.com)'s article
> how to terminate the program in the middle of execution, is there any command
such as halt,exit? since i dont use exception for error handling.

Use C's.  It's in std.c.stdlib.  It's called exit, takes an int and returns the
exit code provided by the caller to the OS upon termination.
October 25, 2008
Re: how to terminate a program
dsimcha Wrote:

> == Quote from james (james@google.com)'s article
> > how to terminate the program in the middle of execution, is there any command
> such as halt,exit? since i dont use exception for error handling.
> 
> Use C's.  It's in std.c.stdlib.  It's called exit, takes an int and returns the
> exit code provided by the caller to the OS upon termination.

thank you very much. it works.
Top | Discussion index | About this forum | D home