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

Reply via email to