[aspectc-user] Catch exceptions in main()?

Markus Elfring Markus.Elfring at web.de
Sat Oct 29 18:55:52 CEST 2011


Hello!

I expect that exception handling is usually supported by a C++ program. I wonder why your main() functions (in the source files "ac++.cc" and "ag++.cc") do not contain corresponding try and catch instructions so far.
http://stackoverflow.com/questions/368184/does-it-make-sense-to-catch-exceptions-in-the-main

How do you think about the recommendations by Matthew Wilson in the article "Quality Matters #6: Exceptions for Practically-Unrecoverable Conditions"?
http://accu.org/index.php/journals/1706

Would you like to adjust the implementation of your main() functions if you consider effects for uncaught/unhandled exceptions like they are described by Bruce Eckel?
http://www.codeguru.com/cpp/tic/tic0259.shtml#Heading684

Regards,
Markus



More information about the aspectc-user mailing list