[phobos] Calling abort() on unhandled exception

Walter Bright walter at digitalmars.com
Thu Jul 29 20:21:07 PDT 2010



Andrei Alexandrescu wrote:
> Walter Bright wrote:
>> I think we misunderstand each other. A file copy program that fails 
>> due to, say, the disk being full, should not produce a core dump. It 
>> should produce an error message like:
>>
>>   error: disk full
>>
>> An uncaught exception is NOT an invalid or crashed program in D.
>
> I think Sean talks about Throwable objects that are not Exception 
> objects.
>

It's reasonable for seg fault exceptions to produce a core dump. It 
isn't for recoverable Exceptions, or for non-recoverable ones like out 
of memory.


More information about the phobos mailing list