[phobos] Calling abort() on unhandled exception
Andrei Alexandrescu
andrei at erdani.com
Fri Jul 30 17:38:44 PDT 2010
Leandro Lucarella wrote:
>> I see. Overall, my opinion is that regular exceptions that escape
>> main(0 should simply print their error message to stderr and
>> exit(1). There should be no stack trace, abort(), core dump, or
>> anything worse than that. Print the string and exit(1). Anything
>> more will force most people to actually insert a try/catch in main
>> to do the simple thing.
>
> Calling abort() on Linux will simply print "Aborted". Do you think is
> that bad that worth being completely different than any other PL and
> making debug an uncaught exception almost imposible???
What is impossible about writing one try statement?
Andrei
More information about the phobos
mailing list