Terminating an application
llee
llee at goucher.edu
Wed Sep 12 15:26:26 PDT 2007
Bill Baxter Wrote:
> llee wrote:
> > Is it possible to terminate an application after catching an exception|error? I know how that assert will automatically terminate an application after catching an AssertError. Is there a general method for terminating an application outside of main(). Perhaps, something like exit() under linux?
>
> exit() is defined in std.c.stdlib. Selective import is good to avoid
> polluting your namespace with all the other cruft in stdlib:
>
> import std.c.stdlib : exit;
>
> --bb
Thanks.
More information about the Digitalmars-d
mailing list