Bug or feature? std.c.stdlib.exit() breaks RAII

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Dec 29 10:26:20 PST 2011


Probably the easiest thing to do is to throw a custom exception and
catch it somewhere in main() to return your status code. Unlike
exit(), throwing will take care of RAII stuff.


More information about the Digitalmars-d-learn mailing list