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.
- Bug or feature? std.c.stdlib.exit() breaks RAII Ashish Myles
- Re: Bug or feature? std.c.stdlib.exit() breaks RAII Jakob Ovrum
- Re: Bug or feature? std.c.stdlib.exit() breaks R... Jakob Ovrum
- Re: Bug or feature? std.c.stdlib.exit() breaks R... Ashish Myles
- Re: Bug or feature? std.c.stdlib.exit() brea... Andrej Mitrovic
- Re: Bug or feature? std.c.stdlib.exit() ... Ashish Myles
- Re: Bug or feature? std.c.stdlib.ex... Jonathan M Davis
- Re: Bug or feature? std.c.stdli... Ashish Myles
- Re: Bug or feature? std.c.s... Jonathan M Davis
- Re: Bug or feature? std.c.s... Ashish Myles
- Re: Bug or feature? std.c.s... Jonathan M Davis
- Re: Bug or feature? std.c.s... Ashish Myles
- Re: Bug or feature? std.c.stdlib.exit() ... AaronP
- Re: Bug or feature? std.c.stdlib.exit() breaks R... Jacob Carlborg
- Re: Bug or feature? std.c.stdlib.exit() brea... Stewart Gordon