stdlib.exit()

bearophile bearophileHUGS at lycos.com
Mon Aug 20 07:27:41 PDT 2012


Regan Heath:

> You could define a custom ExitException and throw that, 
> catching it at the top level and returning the error code 
> stored inside it, from main().  Not ideal, but it would work.

Seems OK.
Another solution is to add a dexit() in Phobos :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list